User Tools

Site Tools


DzEdge

Represents a segment on a face between two vertices.

More...

Inherits :

Properties

Constructors

DAZ Script
DzEdge ()
DzEdge ( String edge )
DzEdge ( Number vertex1, Number vertex2 )
DzEdge ( DzEdge edge )

Methods

Detailed Description

Represents an edge between two vertices.

Properties


Number : cageOffsetA

Holds the offset from the cage.


Number : facetA

Holds the index of a DzFacet this edge belongs to.


Number : facetB

Holds the index of the other DzFacet this edge belongs to (if any), otherwise this is an open edge.


Number : index

Holds the index of this edge.


Number : offsetA

Holds the offset …


Number : offsetB

Holds the offset …


Number : vertIdx1

Holds the index of the vertex this edge originates at.


Number : vertIdx2

Holds the index of the vertex this edge ends at.

Constructors


DzEdge()

Default Constructor.


DzEdge( String edge )

Creates an edge by parsing a string.

Parameter(s):

  • edge - A string representation of the edge in the form "[ vertIdx1, vertIdx2, facetA, facetB, offsetA, offsetB, index ]"

DzEdge( Number vertex1, Number vertex2 )

Constructor. Creates an edge for the given vertex indices.

Parameter(s):

  • vertex1 - The index of the vertex this edge originates at.
  • vertex2 - The index of the vertex this edge ends at.

DzEdge( DzEdge edge )

Copy Constructor. Creates an edge that is a copy of the given edge.

Parameter(s):

  • edge - The edge to copy.

Methods


Boolean : isOpenEdge()

Return Value:

  • true if this is an open edge, otherwise false.

String : toString()

Return Value:

  • A string representation of this edge in the form "[ vertIdx1, vertIdx2, facetA, facetB, offsetA, offsetB, index ]".