VertexElementTemplate
Overview
VertexElementTemplate is a class in Aspose.3D FOSS for Python.
Inherits from: VertexElement.
A helper class for defining concrete implementations of vertex elements with typed data.
This class declares 6 methods for VertexElementTemplate objects in Python programs.
Available methods include: __init__, clear, copy_to, set_data, set_indices.
All public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: data, indices, mapping_mode, name, reference_mode, vertex_element_type.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
data | ArrayListAdapter[T] | Read | Gets the vertex data. |
vertex_element_type | 'VertexElementType' | Read | Gets the vertex element type. |
name | str | Read/Write | Gets or sets the name. |
mapping_mode | 'MappingMode' | Read/Write | Gets or sets the mapping mode. |
reference_mode | 'ReferenceMode' | Read/Write | Gets or sets the reference mode. |
indices | List[int] | Read | Gets the indices. |
Methods
| Signature | Description |
|---|---|
__init__(mapping_mode: MappingMode, reference_mode: ReferenceMode) | Initialize a new instance of the VertexElementTemplate class. |
copy_to(target: 'VertexElementTemplate[T]') | Copies data to specified element. |
set_data(data: List[T]) | Sets the data. |
clear() | Removes all elements from the direct and the index arrays. |
__init__(element_type: 'VertexElementType', name: str, mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') | Calls init(element_type, name, mapping_mode, reference_mode) on this VertexElementTemplate instance. |
set_indices(data: List[int]) | Sets the indices value. |