!!
More...
#include <spBasicMeshGenerator.hpp>
List of all members.
Public Member Functions |
| BasicMeshGenerator () |
| !!
|
| ~BasicMeshGenerator () |
void | createSuperShape (Mesh *Object, const f32 ValueList[12], const s32 Segments=20) |
void | getSuperShapeModel (const ESuperShapeModels Type, f32 ValueList[12]) |
Mesh * | createBezierPatch (const dim::vector3df AnchorPoints[4][4], const s32 Segments=10, bool isFrontFace=true) |
void | createBezierPatchFace (Mesh *Mesh, const u32 Surface, const dim::vector3df AnchorPoints[4][4], const s32 Segments=10, bool isFrontFace=true) |
Mesh * | createHeightField (const video::Texture *TexHeightMap, const s32 Segments) |
Detailed Description
!!
This is the main class for generating procedural 3D models such as cube, sphere, spiral etc.
- Todo:
- Change this to a namespace and rename it to "MeshGenerator"
- Deprecated:
Constructor & Destructor Documentation
sp::scene::BasicMeshGenerator::BasicMeshGenerator |
( |
|
) |
|
sp::scene::BasicMeshGenerator::~BasicMeshGenerator |
( |
|
) |
|
Member Function Documentation
Mesh * sp::scene::BasicMeshGenerator::createBezierPatch |
( |
const dim::vector3df |
AnchorPoints[4][4], |
|
|
const s32 |
Segments = 10 , |
|
|
bool |
isFrontFace = true | |
|
) |
| | |
Creates a Bézier patch 3D model.
- Parameters:
-
| AnchorPoints,: | Array of 4*4 3D points which hold the patch construction data. |
| Segments,: | Count of segments for the patch. Segments ^ 2 quads (quad -> two triangles) will be created. |
- Returns:
- Pointer to the new Entity object.
void sp::scene::BasicMeshGenerator::createBezierPatchFace |
( |
Mesh * |
Mesh, |
|
|
const u32 |
Surface, |
|
|
const dim::vector3df |
AnchorPoints[4][4], |
|
|
const s32 |
Segments = 10 , |
|
|
bool |
isFrontFace = true | |
|
) |
| | |
Creates a Bézier patch surface. This function is used in the "createBezierPatch" function.
- Parameters:
-
| Mesh,: | Entity object which is to get the patch. |
| Surface,: | Surface which is to be used. |
Mesh * sp::scene::BasicMeshGenerator::createHeightField |
( |
const video::Texture * |
TexHeightMap, |
|
|
const s32 |
Segments | |
|
) |
| | |
Creates a height field.
- Parameters:
-
| TexHeightMap,: | Height map texture where the height field data will be sampled. |
| Segments,: | Count of segments. The Mesh object will have Segments^2 quads (or rather 2*Segments^2 triangles). |
- Returns:
- Pointer to the new Entity object.
void sp::scene::BasicMeshGenerator::createSuperShape |
( |
Mesh * |
Object, |
|
|
const f32 |
ValueList[12], |
|
|
const s32 |
Segments = 20 | |
|
) |
| | |
Creates a "super shape" with the specified control values. If you don't know how to set your values use the "getSuperShapeModel" function first.
void sp::scene::BasicMeshGenerator::getSuperShapeModel |
( |
const ESuperShapeModels |
Type, |
|
|
f32 |
ValueList[12] | |
|
) |
| | |
Gets one of the predefined super shape values.
- Parameters:
-
| Type,: | Type of the predefined super shape. |
| ValueList,: | Resulting array with the super shape values. |
The documentation for this class was generated from the following files: