#include <mesh.h>
Inheritance diagram for lilith3d::SolidMesh:

Public Member Functions | |
| SolidMesh () | |
| Create a new object - a resource isn't used. | |
| void | GenerateSlab (float head, float tail, float width, const grinliz::Vector3F &dir, const grinliz::Vector3F &up) |
| void | GenerateCube (const grinliz::Rectangle3F &bounds) |
| void | GenerateSphere (float radius, int iterations) |
| void | UseIntersection (bool intersection) |
| Turn on intersections. Off by default. | |
| virtual void | IntersectRay (int flags, const grinliz::Vector3F &point, const grinliz::Vector3F &dir, LilithObjectList *vec) |
| float | Length () |
| Query the length of the mesh. | |
| void lilith3d::SolidMesh::GenerateSlab | ( | float | head, | |
| float | tail, | |||
| float | width, | |||
| const grinliz::Vector3F & | dir, | |||
| const grinliz::Vector3F & | up | |||
| ) |
Generate a rectangle. The front will be origin + head, and the back will be at origin + tail. (Generally head >= 0 and tail <= 0).
| void lilith3d::SolidMesh::GenerateCube | ( | const grinliz::Rectangle3F & | bounds | ) |
Generate a rectanglular solid. Similar to the GenerateSlab function, but different inputs. The 'bounds' parameter must contain the point (0,0,0)
| void lilith3d::SolidMesh::GenerateSphere | ( | float | radius, | |
| int | iterations | |||
| ) |
Generate a sphere. The "iterations" is a quality metric and should generally be 1 or 2, where 2 is higher quality.
| virtual void lilith3d::SolidMesh::IntersectRay | ( | int | flags, | |
| const grinliz::Vector3F & | point, | |||
| const grinliz::Vector3F & | dir, | |||
| LilithObjectList * | vec | |||
| ) | [virtual] |
Check for intersection with the current Mesh.
Implements lilith3d::Mesh.
1.5.1-p1