#include <MeshPrimitiveBuilder.h>
|
| IE_CORE_DECLAREMEMBERPTR (MeshPrimitiveBuilder) |
|
template<typename T > |
void | addVertex (const Imath::Vec3< T > &p, const Imath::Vec3< T > &n) |
| Add a vertex position and normal.
|
|
void | addTriangle (int v0, int v1, int v2) |
|
MeshPrimitivePtr | mesh () const |
| Retrieve the resultant mesh.
|
|
| IE_CORE_DECLAREMEMBERPTR (RefCounted) |
|
void | addRef () const |
| Add a reference to the current object.
|
|
void | removeRef () const |
| Remove a reference from the current object.
|
|
RefCount | refCount () const |
| Returns the current reference count.
|
|
|
V3fVectorDataPtr | m_P |
|
V3fVectorDataPtr | m_N |
|
IntVectorDataPtr | m_verticesPerFace |
|
IntVectorDataPtr | m_vertexIds |
|
MeshPrimitiveBuilder is a class which allows incremental construction of IECore::MeshPrimitive meshes, templated on the base type of the resulting point/normal data (e.g. float or double). Other builders could be created by using this as a model. One possible client of this class is IECore::MarchingCubes.
- Todo:
- This is too specific to MarchingCubes. Some algorithms want to make faces other than triangles, and some algorithms don't want to supply normals.
void IECore::MeshPrimitiveBuilder::addTriangle |
( |
int |
v0, |
|
|
int |
v1, |
|
|
int |
v2 |
|
) |
| |
Construct a triangle from the 3 specified vertex indices. The winding order here matches that of IECore::MeshPrimitive
The documentation for this class was generated from the following file: