VertexDeclaration class

VertexDeclaration class

The declaration of a custom defined vertex’s structure

The VertexDeclaration type exposes the following members:

Constructors

ConstructorDescription
__init__(self)Constructs a new instance of VertexDeclaration

Properties

PropertyDescription
sealedA VertexDeclaration will be sealed when its been used by TriMesh1 or [TriMesh`](/3d/python-net/aspose.threed.entities/trimesh), no more modifications is allowed.
countGets the count of all fields defined in this VertexDeclaration
sizeThe size in byte of the vertex structure.

Indexer

NameDescription
[index]

Methods

MethodDescription
clear(self)Clear all fields.
add_field(self, data_type, semantic, index, alias)Add a new vertex field
from_geometry(, geometry, use_float)Create a VertexDeclaration based on a Geometry’s layout.
compare_to(self, other)Compares this instance to a specified object and returns an indication of their relative values.

See Also