QSDK 1.1 Documentation
Main Page | Modules | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

Q::IntersectionMesh Struct Reference
[Geometric Objects]

A geometry object for intersection testing static triangle meshes. More...

#include <Q/q.h>

Inheritance diagram for Q::IntersectionMesh:

Q::Geom Q::Object Q::ObjectBase List of all members.

Public Member Functions

 IntersectionMesh ()
 IntersectionMesh (const char *name)
unsigned int triangleCount () const
FullTriangleIterator triangles ()

Static Public Member Functions

IntersectionMesh create (const char *name, const Database &db=Database())
IntersectionMesh find (const char *name)
ClassType classType ()
IntersectionMesh cast (const ObjectBase &)

Detailed Description

A geometry object for intersection testing static triangle meshes.

An IntersectionMesh object is a rigid collection of polygons. It contains a list of triangles. Each triangle has 3 vertices and a reference to a Shader. The shader is used purely for surface type queries.


Constructor & Destructor Documentation

Q::IntersectionMesh::IntersectionMesh  )  [inline]
 

Create a null mesh reference.

Q::IntersectionMesh::IntersectionMesh const char *  name  ) 
 

Search the currently attached databases for a mesh with the given name.


Member Function Documentation

IntersectionMesh Q::IntersectionMesh::cast const ObjectBase  )  [static]
 

If the object referenced by obj is an intersection mesh, then return a suitable IntersectionMesh reference to the object.

Note:
Casting this object will cause it to be loaded from the database if it is not currently resident.

Reimplemented from Q::Geom.

ClassType Q::IntersectionMesh::classType  )  [static]
 

Return the type for this class

IntersectionMesh Q::IntersectionMesh::create const char *  name,
const Database db = Database()
[static]
 

Create a new mesh named name in the given database, db, (or the most recently attached read-write database if db is null). The values of the new object's intersectable flag is set to true.

IntersectionMesh Q::IntersectionMesh::find const char *  name  )  [static]
 

Search the currently attached databases for an intersection mesh with the given name and return that object, if it exists.

unsigned int Q::IntersectionMesh::triangleCount  )  const
 

Return the number of triangles in the mesh.

FullTriangleIterator Q::IntersectionMesh::triangles  ) 
 

Return an iterator that can be used to examine and edit the triangles for a mesh.

Return to QSDK documentation Contents page. Contact details for support, information and fault-reporting.
Qube Software Limited © 2000-2004