from_raw_data method

from_raw_data

Create TriMesh from raw data

Returns

The TriMesh instance that encapsulated the input byte array.

def from_raw_data(self, vd, vertices, indices, generate_vertex_mapping):
    ...
ParameterTypeDescription
vdaspose.threed.utilities.VertexDeclarationVertex declaration, must contains at least one field.
verticesbytesThe input vertex data, the minimum length of the vertices must be greater or equal to vertex declaration’s size
indiceslistThe triangle indices
generate_vertex_mappingboolGenerate Vertex for each vertex, which is not necessary for just serialization/deserialization.

Remarks

The returned TriMesh will not copy the input byte array for performance, external changes on the array will be reflected to this instance.

See Also