Cortex  10.0.0-a4
Public Types | Public Member Functions | Protected Attributes | List of all members
IECoreMaya::MayaMeshBuilder< T > Class Template Reference

#include <MayaMeshBuilder.h>

+ Inheritance diagram for IECoreMaya::MayaMeshBuilder< T >:

Public Types

typedef T BaseType
 
- Public Types inherited from IECore::RefCounted
typedef size_t RefCount
 

Public Member Functions

 MayaMeshBuilder (MObject parentOrOwner)
 
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)
 Construct a triangle from the 3 specified vertex indices.
 
MObject mesh () const
 Retrieve the resultant mesh as MFnMeshData.
 
- Public Member Functions inherited from IECore::RefCounted
 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.
 

Protected Attributes

MObject m_parentOrOwner
 
Data * m_data
 

Detailed Description

template<typename T>
class IECoreMaya::MayaMeshBuilder< T >

MayaMeshBuilder is a class which allows construction of Maya mesh data, templated on the base type of the resulting point/normal data (e.g. float or double).


The documentation for this class was generated from the following file: