MathEngine
Home Page       Structures       File List       Functions and Macros      

McdConvexMesh.h File Reference

The convex mesh geometry type. More...

#include "McdFrame.h"

Typedefs

typedef McdGeometryID McdConvexMeshID
 McdConvexMesh is a concrete McdGeometry type.


Functions

void McdConvexMeshRegisterType ()
 Register the convex mesh geometry type with the Mcd system.

int McdConvexMeshGetTypeID ()
 Returns a unique ID identifying the McdConvexMesh geometry type.

void McdConvexMeshRegisterInteractions ()
 Register all available interactions between a McdConvexMesh type and any other geometry type provided with the Mcd system.

McdConvexMeshID McdConvexMeshCreate (int vertexCount, int edgeCount, int polyCount, MeReal fatnessRadius)
 Create an empty convex mesh and specify initial number of vertices, edges and polygons. More...

void McdConvexMeshDestroy ( McdConvexMeshID )
 Free memory used by convex mesh.

McdConvexMeshID McdConvexMeshCreateHull (MeVector3* vertices, int vertexCount, MeReal fatnessRadius )
 Create new convex polyhedron object from its vertices. More...

McdConvexMeshID McdConvexMeshCreateSphyl ( MeReal radius, MeReal height )
 Create new sphyl represented as a fat convex polyhedron.

void McdConvexMeshRegisterBoxAndSphereFns ( )
 Set's the box-box and box-sphere intersection fns to the ConvexConvexFn().

int McdConvexMeshGetPolygonCount ( McdConvexMeshID )
 Get number of polygons.

int McdConvexMeshGetPolygonVertexCount ( McdConvexMeshID, int polyID)
 Get number of vertices in polygon.

void McdConvexMeshGetPolygonVertex ( McdConvexMeshID, int polyID, int vertexID, MeVector3)
 Copy polygon vertex position into coords.

MeReal* McdConvexMeshGetPolygonVertexPtr ( McdConvexMeshID, int polyID, int vertexID)
 get direct access to vertex.

void McdConvexMeshGetPolygonNormal ( McdConvexMeshID, int, MeVector3 )
 Copy polygon normal into coords.

void McdCylinderConvexMeshRegisterInteraction ()
 Register interaction function between McdConvexMesh and McdCylinder geometry types.


Detailed Description

The convex mesh geometry type.


Function Documentation

McdConvexMeshID McdConvexMeshCreate ( int vertexCount,
int edgeCount,
int polyCount,
MeReal fatnessRadius )

Create an empty convex mesh and specify initial number of vertices, edges and polygons.

Not yet implemented.

McdConvexMeshID McdConvexMeshCreateHull ( MeVector3 * vertices,
int vertexCount,
MeReal fatnessRadius )

Create new convex polyhedron object from its vertices.

Computes the convex hull polygons and edges.


MathEngine Collision Toolkit - Version 0.0.5 Alpha - Reference Manual generated using doxygen at Wed Oct 11 00:34:40 2000

Copyright MathEngine PLC 2000, all rights reserved.