|
OptiX
3.9
NVIDIA OptiX Acceleration Engine
|
Geometry wraps the OptiX C API RTgeometry opaque type and its associated function set.
Public Member Functions | |
| void | destroy () |
| void | validate () |
| Context | getContext () const |
| RTgeometry | get () |
| void | markDirty () |
| bool | isDirty () const |
| void | setPrimitiveCount (unsigned int num_primitives) |
| unsigned int | getPrimitiveCount () const |
| void | setPrimitiveIndexOffset (unsigned int index_offset) |
| unsigned int | getPrimitiveIndexOffset () const |
| void | setBoundingBoxProgram (Program program) |
| Program | getBoundingBoxProgram () const |
| void | setIntersectionProgram (Program program) |
| Program | getIntersectionProgram () const |
| Variable | declareVariable (const std::string &name) |
| Variable | queryVariable (const std::string &name) const |
| void | removeVariable (Variable v) |
| unsigned int | getVariableCount () const |
| Variable | getVariable (unsigned int index) const |
Public Member Functions inherited from optix::APIObj | |
| void | addReference () |
| int | removeReference () |
| virtual void | checkError (RTresult code) const |
| virtual void | checkError (RTresult code, Context context) const |
| void | checkErrorNoGetContext (RTresult code) const |
Friends | |
| class | Handle< GeometryObj > |
Additional Inherited Members | |
Static Public Member Functions inherited from optix::APIObj | |
| static Exception | makeException (RTresult code, RTcontext context) |
|
inlinevirtual |
Declare a variable associated with this object. See rt[ObjectType]DeclareVariable. Note that this function is wrapped by the convenience function Handle::operator[].
Implements optix::ScopedObj.
|
inline |
Query the number of primitives in this geometry object (eg, number of triangles in mesh). See rtGeometryGetPrimitiveCount
|
inline |
Query the primitive index offset for this geometry object. See rtGeometryGetPrimitiveIndexOffset
|
inlinevirtual |
Query the number of variables associated with this object. Used along with ScopedObj::getVariable to iterate over variables in an object. See rt[ObjectType]GetVariableCount
Implements optix::ScopedObj.
|
inline |
Mark this geometry as dirty, causing rebuild of parent groups acceleration. See rtGeometryMarkDirty.
|
inlinevirtual |
Query a variable associated with this object by name. See rt[ObjectType]QueryVariable. Note that this function is wrapped by the convenience function Handle::operator[].
Implements optix::ScopedObj.
|
inline |
Set the bounding box program for this geometry. See rtGeometrySetBoundingBoxProgram.
|
inline |
Set the number of primitives in this geometry object (eg, number of triangles in mesh). See rtGeometrySetPrimitiveCount
|
inline |
Set the primitive index offset for this geometry object. See rtGeometrySetPrimitiveIndexOffset
1.8.6