VertexDeclaration

VertexDeclaration class

The declaration of a custom defined vertex’s structure

Methods

constructor

NameDescription
constructor()

Result:


getSealed

NameDescription
getSealed()A VertexDeclaration will be sealed when its been used by com.aspose.threed.TriMesh`1 or TriMesh, no more modifications is allowed.

Result:


getCount

NameDescription
getCount()Gets the count of all fields defined in this VertexDeclaration

Result:


getSize

NameDescription
getSize()The size in byte of the vertex structure.

Result:


get

NameDescription
get(index)

Result:


clear

NameDescription
clear()Clear all fields.

Result:


addField

NameDescription
addField(dataType, semantic, index, alias)Add a new vertex field

Parameters:

NameTypeDescription
dataTypeNumberVertexFieldDataType
semanticVertexFieldSemanticVertexFieldSemantic
indexNumberThe index for same field semantic, -1 for auto-generation
aliasStringThe alias name of the field

Result:


fromGeometry

NameDescription
fromGeometry(geometry, useFloat)Create a VertexDeclaration based on a Geometry’s layout.

Parameters:

NameTypeDescription
geometrGeometrynull
useFloatbooleanUse float instead of double type

Result: VertexDeclaration


compareTo

NameDescription
compareTo(other)Compares this instance to a specified object and returns an indication of their relative values.

Result: VertexDeclaration


toString

NameDescription
toString()

Result: String


hashCode

NameDescription
hashCode()

Result: Number


equals

NameDescription
equals(obj)Determines whether this instance and a specified object, which must also be a VertexDeclaration object, have the same value.

Result: Number


iterator

NameDescription
iterator()Reserved for internal use.

Result: Number