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):
...
| Parameter | Type | Description |
|---|---|---|
| vd | aspose.threed.utilities.VertexDeclaration | Vertex declaration, must contains at least one field. |
| vertices | bytes | The input vertex data, the minimum length of the vertices must be greater or equal to vertex declaration’s size |
| indices | list | The triangle indices |
| generate_vertex_mapping | bool | Generate 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
- module
aspose.threed.entities - class
TriMesh - class
Vertex