VertexDeclaration
Overview
VertexDeclaration is a class in Aspose.3D FOSS for .NET.
Inherits from: IEnumerable<VertexField>, IEnumerable, IComparable<VertexDeclaration>.
VertexDeclaration lets you define custom vertex layouts by calling AddField(dataType, semantic, index, alias); once sealed, the layout cannot be changed.
This class provides 10 methods for working with VertexDeclaration objects in .NET programs.
Available methods include: AddField, Clear, CompareTo, Equals, FromGeometry, FromType, GetEnumerator, GetHashCode, ToString, VertexDeclaration.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Properties: Count, Item, Sealed, Size.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Sealed | bool | Read | Gets the sealed. |
Count | int | Read | Gets the count. |
Item | VertexField | Read | Gets the item. |
Size | int | Read | Gets the size. |
Methods
| Signature | Description |
|---|---|
VertexDeclaration() | Creates a new, empty vertex declaration instance |
Clear() | Removes all fields from the declaration, resetting it to empty |
AddField(dataType: VertexFieldDataType, semantic: VertexFieldSemantic, index: int, alias: string) | Adds a vertex field with the given type, semantic, index and alias |
FromType() | Calls FromType on this VertexDeclaration instance. |
FromGeometry(geometry: Geometry, useFloat: bool) | Calls FromGeometry(geometry, useFloat) on this VertexDeclaration instance. |
GetHashCode() | Returns a hash code based on the declaration’s contents |
Equals(obj: object?) | Determines whether the given object is an equal vertex declaration |
CompareTo(other: VertexDeclaration) | Compares this declaration to another for sorting order |
ToString() | Returns a string representation of the vertex declaration |
GetEnumerator() | Provides an iterator over the declaration’s fields |