iMeshGenerator Struct Reference
[Crystal Space 3D Engine]
iMeshGenerator defines the interface for a mesh generator.
More...
#include <iengine/meshgen.h>
Inheritance diagram for iMeshGenerator:

Public Member Functions | |
virtual void | AddMesh (iMeshWrapper *mesh)=0 |
Add a mesh on which we will map our geometry. | |
virtual iMeshGeneratorGeometry * | CreateGeometry ()=0 |
Create a geometry specification for this mesh generator. | |
virtual int | GetBlockCount () const =0 |
Get the block count. | |
virtual int | GetCellCount () const =0 |
Get the cell count. | |
virtual iMeshGeneratorGeometry * | GetGeometry (size_t idx)=0 |
Get a specific geometry. | |
virtual size_t | GetGeometryCount () const =0 |
Get the number of geometry specifications. | |
virtual iMeshWrapper * | GetMesh (size_t idx)=0 |
Get a specific mesh. | |
virtual size_t | GetMeshCount () const =0 |
Get the number of meshes. | |
virtual const csBox3 & | GetSampleBox () const =0 |
Get the sample box. | |
virtual iObject * | QueryObject ()=0 |
Get the iObject for this mesh generator. | |
virtual void | RemoveGeometry (size_t idx)=0 |
Remove a geometry. | |
virtual void | RemoveMesh (size_t idx)=0 |
Remove a mesh. | |
virtual void | SetAlphaScale (float mindist, float maxdist)=0 |
Set the alpha scale. | |
virtual void | SetBlockCount (int number)=0 |
Set the maximum number of blocks to keep in memory at the same time. | |
virtual void | SetCellCount (int number)=0 |
Set the number of cells to use in one direction. | |
virtual void | SetDensityScale (float mindist, float maxdist, float maxdensityfactor)=0 |
Set the density scale. | |
virtual void | SetSampleBox (const csBox3 &box)=0 |
Get the box where where we will sample. |
Detailed Description
iMeshGenerator defines the interface for a mesh generator.
Definition at line 124 of file meshgen.h.
Member Function Documentation
|
Add a mesh on which we will map our geometry.
|
|
Create a geometry specification for this mesh generator.
|
|
Get the block count.
|
|
Get the cell count.
|
|
Get a specific geometry.
|
|
Get the number of geometry specifications.
|
|
Get a specific mesh.
|
|
Get the number of meshes.
|
|
Get the sample box.
|
|
Get the iObject for this mesh generator.
|
|
Remove a geometry.
|
|
Remove a mesh.
|
|
Set the alpha scale. If this is set then objects in the distance will use alpha mode.
|
|
Set the maximum number of blocks to keep in memory at the same time. A block contains generated positions. Generating a block may be expensive (depending on density and size of the cells) so it may be good to have a high number here. Having a high number means more memory usage though. Default is 100. |
|
Set the number of cells to use in one direction. Total cells will be 'number*number'. A cell is a logical unit that can keep a number of generated positions. Using bigger (fewer) cells means that more positions are generated at once (possibly causing hickups when this happens). Smaller cells may mean more runtime overhead. Default is 50. |
|
Set the density scale. If this is set then objects in the distance can have a lower density.
|
|
Get the box where where we will sample. We will sample starting at the highest y value of the box and pointing down to the lowest y value of the box. (@@ TODO: in future support other directions for the mapping beam). |
The documentation for this struct was generated from the following file:
- iengine/meshgen.h
Generated for Crystal Space by doxygen 1.4.6