{
vtGeom *pLineGeom = new vtGeom;
vtMeshFactory mf(pLineGeom, vtMesh::LINE_STRIP, 0, 3000, 1);
mf.PrimStart();
for (int i = 0; i < 10000; i++)
mf.AddVertex(FPoint3(i,i,i));
mf.PrimEnd();
}
Public Member Functions | |
| vtMeshFactory (vtGeom *pGeom, vtMeshBase::PrimType ePrimType, int iVertType, int iMaxVertsPerMesh, int iMatIndex, int iExpectedVerts=-1) | |
| vtMeshFactory (vtMesh *pMesh) | |
| void | PrimStart () |
| void | AddVertex (const FPoint3 &p) |
| void | PrimEnd () |
|
||||||||||||||||||||||||||||
|
Constructor.
|
|
|
Alternate, simpler constructor.
|
|
|
Tell the factory to add a vertex to the current primitive. |
|
|
Tell the factory to end a primitive. |
|
|
Tell the factory to start a primitive. |
1.4.5