VertexDeclaration
Overview
VertexDeclaration is a class in Aspose.3D FOSS for Python.
The declaration of a custom defined vertex’s structure
This class declares 5 methods for VertexDeclaration objects in Python programs.
Available methods include: __init__, add_field, clear, compare_to, from_geometry.
All public members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: count, sealed, size.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
sealed | bool | Read | Gets the sealed. |
count | int | Read | Gets the count. |
size | int | Read | Gets the size. |
Methods
| Signature | Description |
|---|---|
__init__() | Not implemented in the FOSS edition — throws at runtime. Calls init on this VertexDeclaration instance. |
clear() | Not implemented in the FOSS edition — throws at runtime. Calls clear on this VertexDeclaration instance. |
add_field(data_type: 'VertexFieldDataType', semantic: 'VertexFieldSemantic', index: int, alias: str) → 'VertexField' | Not implemented in the FOSS edition — throws at runtime. Creates a new VertexField that defines a component of a custom vertex layout |
from_geometry(geometry: 'Geometry', use_float: bool) → 'VertexDeclaration' | Not implemented in the FOSS edition — throws at runtime. Calls from_geometry(geometry, use_float) on this VertexDeclaration instance. |
compare_to(other: 'VertexDeclaration') → int | Not implemented in the FOSS edition — throws at runtime. Calls compare_to(other) on this VertexDeclaration instance. |