292
Objects
Returns
A HalfEdge object.
Description
Method; gets the preceding HalfEdge object on the current contour.
Example
The following example stores the previous half edge of the specified contour in the
prevHalfEdge
variable:
var shape = fl.getDocumentDOM().selection[0];
var hEdge = shape.edges[0].getHalfEdge( 0 );
var prevHalfEdge = hEdge.getPrev();
halfEdge.getVertex()
Availability
Flash MX 2004.
Usage
halfEdge.getVertex()
Parameters
None.
Returns
A
Vertex object
.
Description
Method; gets the Vertex object at the head of the HalfEdge object. See
Vertex object
.
Example
The following example stores the Vertex object at the head of
hEdge
in the
vertex
variable:
var shape = fl.getDocumentDOM().selection[0];
var edge = shape.edges[0];
var hEdge = edge.getHalfEdge(0);
var vertex = hEdge.getVertex();
NO
TE
Although half edges have a direction and a sequence order, edges do not.
Summary of Contents for FLASH 8-EXTENDING FLASH
Page 1: ...Extending Flash...
Page 38: ...38 Top Level Functions and Methods...
Page 532: ...532 Objects...
Page 554: ...554 C Level Extensibility...