Packagestarling.utils
Classpublic class MeshSubset
InheritanceMeshSubset Inheritance Object

A class describing a range of vertices and indices, thus referencing a subset of a Mesh.



Public Properties
 PropertyDefined By
  indexID : int
The ID of the first index.
MeshSubset
  numIndices : int
The total number of indices.
MeshSubset
  numVertices : int
The total number of vertices.
MeshSubset
  vertexID : int
The ID of the first vertex.
MeshSubset
Public Methods
 MethodDefined By
  
MeshSubset(vertexID:int = 0, numVertices:int = -1, indexID:int = 0, numIndices:int = -1)
Creates a new MeshSubset.
MeshSubset
  
setTo(vertexID:int = 0, numVertices:int = -1, indexID:int = 0, numIndices:int = -1):void
Changes all properties at once.
MeshSubset
Property Detail
indexIDproperty
public var indexID:int

The ID of the first index.

numIndicesproperty 
public var numIndices:int

The total number of indices.

numVerticesproperty 
public var numVertices:int

The total number of vertices.

vertexIDproperty 
public var vertexID:int

The ID of the first vertex.

Constructor Detail
MeshSubset()Constructor
public function MeshSubset(vertexID:int = 0, numVertices:int = -1, indexID:int = 0, numIndices:int = -1)

Creates a new MeshSubset.

Parameters
vertexID:int (default = 0)
 
numVertices:int (default = -1)
 
indexID:int (default = 0)
 
numIndices:int (default = -1)
Method Detail
setTo()method
public function setTo(vertexID:int = 0, numVertices:int = -1, indexID:int = 0, numIndices:int = -1):void

Changes all properties at once. Call without any arguments to reference a complete mesh.

Parameters

vertexID:int (default = 0)
 
numVertices:int (default = -1)
 
indexID:int (default = 0)
 
numIndices:int (default = -1)