[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

### 4.10.12 Genmesh Mesh Object

Written by Jorrit Tyberghein, jorrit.tyberghein@gmail.com.

A Genmesh is a complex set of 3D triangles (just like a 3D sprite) that doesn't support any automatic animation (unlike a 3D sprite). In general genmeshes are ideal for high detailed objects.

There is also a HOWTO discussing the creation of genmeshes. See section Creating a Genmesh Mesh.

#### Basic Structure

The following SCF class names are used (for `csLoadPlugin`):

- Type plugin: `crystalspace.mesh.object.genmesh`
- Loader plugin: `crystalspace.mesh.loader.genmesh`
- Factory loader plugin: `crystalspace.mesh.loader.factory.genmesh`

Objects in this plugin implement the following SCF interfaces, which you can retrieve with `scfQueryInterface`:

- MeshObject
  - Implements ``iMeshObject'`
  - Implements ``iGeneralMeshState'`
- MeshObjectFactory
  - Implements ``iMeshObjectFactory'`
  - Implements ``iGeneralFactoryState'`
- MeshObjectType
  - Implements ``iMeshObjectType'`

#### Factory State Interface

Use the ``iGeneralFactoryState'` SCF interface to access settings for a genmesh factory. The definition of this interface can be found in ``CS/include/imesh/genmesh.h'` and that is also the include file you need to include in your applications to use this plugin. Using this interface you can access the material, triangles, vertices, texture coordinates, normals, and various other configuration parameters for a genmesh factory.

#### Factory Loader

@@@TODO

#### Object State Interface

``iGeneralMeshState'` (residing in ``CS/include/imesh/genmesh.h'`) is the SCF interface that you can use to manipulate settings for a genmesh object. By using this interface you can access the material, blending mode (mixmode), and various other configuration parameters for a genmesh object.

#### Object Loader

@@@TODO

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ]

This document was generated using texi2html 1.76.