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 | 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 | VertexElementType | Vertex element type |
| mapping_mode | MappingMode | Default mapping mode |
| reference_mode | 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
Shape - class
VertexElementUV