create_element method
Contents
[
Hide
]create_element(self, type)
Creates a vertex element with specified type and add it to the geometry.
Returns
Created element.
def create_element(self, type):
...
| Parameter | Type | Description |
|---|---|---|
| type | aspose.threed.entities.VertexElementType | Vertex element type |
Remarks
If type is VertexElementType.UV, a VertexElementUV with texture mapping type to TextureMapping.DIFFUSE will be created.
create_element(self, type, mapping_mode, reference_mode)
Creates a vertex element with specified type and add it to the geometry.
Returns
Created element.
def create_element(self, type, mapping_mode, reference_mode):
...
| Parameter | Type | Description |
|---|---|---|
| type | aspose.threed.entities.VertexElementType | Vertex element type |
| mapping_mode | aspose.threed.entities.MappingMode | Default mapping mode |
| reference_mode | aspose.threed.entities.ReferenceMode | Default reference mode |
Remarks
If type is VertexElementType.UV, a VertexElementUV with texture mapping type to TextureMapping.DIFFUSE will be created.
See Also
- module
aspose.threed.entities - class
Mesh - class
VertexElement - class
VertexElementUV