User Tools

Site Tools


DzFacet

Represents a polygonal face within a polygon mesh.

More...

Inherits :

Properties

Constructors

DAZ Script
DzFacet ()
DzFacet ( String facet )
DzFacet ( DzFacet facet )

Methods

Detailed Description

A 3 or 4 sided polygonal face within a polygon mesh.

See Also:

Properties


Number : cageIndex

Holds the index of this face in the cage mesh


Number : edgeIdx1

Holds the index of the first edge, otherwise -1


Number : edgeIdx2

Holds the index of the second edge, otherwise -1


Number : edgeIdx3

Holds the index of the third edge, otherwise -1


Number : edgeIdx4

Holds the index of the fourth edge normal (if any), otherwise -1


Number : faceGroupIndex

Holds the index of the face group this face belongs to


Number : materialIndex

Holds the index of the material group this face belongs to


Number : normIdx1

Holds the index of the first vertex normal


Number : normIdx2

Holds the index of the second vertex normal


Number : normIdx3

Holds the index of the third vertex normal


Number : normIdx4

Holds the index of the fourth vertex normal (if any), otherwise -1


Number : uvwIdx1

Holds the index of the first texture vertex


Number : uvwIdx2

Holds the index of the second texture vertex


Number : uvwIdx3

Holds the index of the third texture vertex


Number : uvwIdx4

Holds the index of the fourth texture vertex (if any), otherwise -1


Number : vertIdx1

Holds the index of the first vertex


Number : vertIdx2

Holds the index of the second vertex


Number : vertIdx3

Holds the index of the third vertex


Number : vertIdx4

Holds the index of the fourth vertex (if any), otherwise -1

Constructors


DzFacet()

Default Constructor.


DzFacet( String facet )

Creates a facet by parsing a string.

Parameter(s):

  • facet - A string representation of the facet in the form "[[ vertIdx1, vertIdx2, vertIdx3, vertIdx4 ], [ uvwIdx1, uvwIdx2, uvwIdx3, uvwIdx4 ], [ normIdx1, normIdx2, normIdx3, normIdx4 ], [ edgeIdx1, edgeIdx2, edgeIdx3, edgeIdx4 ], materialIndex, faceGroupIndex, cageIndex ]"

DzFacet( DzFacet facet )

Copy Constructor.

Parameter(s):

  • facet - The facet to copy.

Methods


void : clear()

Set the facet to a default state.


void : clearTriFanCount()

TODO: Add description.


void : clearTriFanRoot()

TODO: Add description.


Number : getTriFanCount()

TODO: Add description.


Number : getTriFanEdgeCount()

TODO: Add description.


Number : getTriFanMaxEdgeIdx()

TODO: Add description.


Number : getTriFanOffset()

TODO: Add description.


Number : getTriFanRoot()

TODO: Add description.


Boolean : isQuad()

Return Value:

  • true if this is a 4 sided polygon, otherwise false

Boolean : isTri()

Return Value:

  • true if this is a 3 sided polygon, otherwise false

Boolean : isTriFan()

TODO: Add description.


Boolean : isTriFanChild()

TODO: Add description.


Boolean : isTriFanRoot()

TODO: Add description.


void : setTriFanCount( Number count )

TODO: Add description.


void : setTriFanRoot( Number rootIdx )

TODO: Add description.


String : toString()

Return Value:

  • A string representation of this facet in the form "[[ vertIdx1, vertIdx2, vertIdx3, vertIdx4 ], [ uvwIdx1, uvwIdx2, uvwIdx3, uvwIdx4 ], [ normIdx1, normIdx2, normIdx3, normIdx4 ], [ edgeIdx1, edgeIdx2, edgeIdx3, edgeIdx4 ], materialIndex, faceGroupIndex, cageIndex ]".