computeIndexCount(object, component) -> int
This function is called to allow the primitive generator to provide the number of vertices it will use.
* object (MObject) - The object being evaluated.
* component (MObject) - The components to use.
generateIndexing(object, component, sourceIndexing, targetIndexing, indexBuffer) -> (int, int)
This method gets called to allow the generator to fill in the data for a custom index stream.
* object (MObject) - The object being evaluated.
* component (MObject) - The components to use when building the index buffer.
* sourceIndexing (MComponentDataIndexingList) - Vertex index mapping in the declared MComponentDataIndexing::MComponentType space.
* targetIndexing (MComponentDataIndexingList) - Vertex index mapping from targetIndexing.getComponentType() space to vertex buffer space.
* indexBuffer [OUT] (MIndexBuffer) - The index buffer to fill.
Returns the type of primitive of the generated indexing and the stride of the generated indexing, only valid when the returned primitive type is kPatch
See MGeometry.primitiveString() description for a list of valid primitive types.
The documentation for this class was generated from the following file: