csPrimitives Class Reference
A primitive mesh generator. More...
#include <cstool/primitives.h>
Static Public Member Functions | |
static void | GenerateBox (const csBox3 &box, csDirtyAccessArray< csVector3 > &mesh_vertices, csDirtyAccessArray< csVector2 > &mesh_texels, csDirtyAccessArray< csVector3 > &mesh_normals, csDirtyAccessArray< csTriangle > &mesh_triangles) |
Generate a box with 24 vertices and 12 triangles so that the normals of every face point outwards (the normals of the vertices belonging to a face will point with the correct normal of the face). | |
static void | GenerateSphere (const csEllipsoid &ellips, int num, csDirtyAccessArray< csVector3 > &mesh_vertices, csDirtyAccessArray< csVector2 > &mesh_texels, csDirtyAccessArray< csVector3 > &mesh_normals, csDirtyAccessArray< csTriangle > &mesh_triangles, bool cyl_mapping=false, bool toponly=false, bool reversed=false) |
Generate a sphere with 'num' vertices on the rim. |
Detailed Description
A primitive mesh generator.
Definition at line 39 of file primitives.h.
Member Function Documentation
|
Generate a box with 24 vertices and 12 triangles so that the normals of every face point outwards (the normals of the vertices belonging to a face will point with the correct normal of the face).
|
|
Generate a sphere with 'num' vertices on the rim.
|
The documentation for this class was generated from the following file:
- cstool/primitives.h
Generated for Crystal Space by doxygen 1.4.6