glscene

 

TFaceGroup

Page history last edited by skinhat 4 yrs ago

Is the list item type for the TFaceGroups class which is ultimately used by TMeshObject. It provides a list of index's to the TMeshObject vertices that have a given texture. For example it is possible to use TFaceGroup obtain all the vertices that use the texture 'right_leg.jpg'.

Important methods and properties:

materialname: The texture name of the facegroup

vertexindices TIntegerList

List of vertex indices to vertices list of the parent TMeshObject. For example vertexindices may be the list 3, 4, 5 which means the face group is made up the vertices:

TMeshObject.vertices[3]

TMeshObject.vertices[4]

TMeshObject.vertices[5]

The vertexindices property isn't actually part of TFaceGroup. Rather it is in TFGVertexIndexList. Therefore access vertexindices by overriding the TFaceGroup class with TFGVertexIndexList.

Unit: GLVectorFileObjects

Comments (0)

You don't have permission to comment on this page.