HalfEdge object
Availability
Flash MX 2004.
Description
The halfEdge object is the directed side of the edge of a
You can transverse the contours of a shape by "walking around" these half edges. For example,
starting from a half edge, you can visit all the half edges around a contour of a shape, and return
to the original half edge.
Half edges are ordered. One half edge represents one side of the edge; the other half edge
represents the other side.
Method summary for the HalfEdge object
The following methods are available for the halfEdge object:
Method
halfEdge.getEdge()
halfEdge.getNext()
halfEdge.getOppositeHalfEdge()
halfEdge.getPrev()
halfEdge.getVertex()
Property summary for the HalfEdge object
The following properties are available for the halfEdge object:
Property
halfEdge.id
halfEdge.getEdge()
Availability
Flash MX 2004.
Usage
halfEdge.getEdge()
Parameters
None.
Returns
An
Edge
object.
Shape
Description
Gets the
Edge object
for the halfEdge object.
Gets the next half edge on the current contour.
Gets the halfEdge object on the other side of the edge.
Gets the preceding halfEdge object on the current contour.
Gets the
Vertex object
Description
Read-only; a unique integer identifier for the halfEdge object.
object. An edge has two half edges.
at the head of the halfEdge object.
HalfEdge object
CHAPTER 3
Objects
195
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?