beautypg.com

Chapter 22: halfedge object, Halfedge.getedge(), Returns a – Adobe Extending Flash Professional CS5 User Manual

Page 326: Halfedge object

background image

304

Last updated 5/2/2011

Chapter 22: HalfEdge object

Availability
Flash MX 2004.

Description
The HalfEdge object is the directed side of the edge of a

Shape object

. An edge has two half edges. You can transverse

the contours of a shape by “walking around” these half edges. For example, starting from a half edge, you can trace 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
The following methods are available for the HalfEdge object:

Property summary
The following properties are available for the HalfEdge object:

halfEdge.getEdge()

Availability
Flash MX 2004.

Usage

halfEdge.getEdge()

Parameters
None.

Method

Description

halfEdge.getEdge()

Gets the

Edge object

for the HalfEdge object.

halfEdge.getNext()

Gets the next half edge on the current contour.

halfEdge.getOppositeHalfEdge()

Gets the HalfEdge object on the other side of the edge.

halfEdge.getPrev()

Gets the preceding HalfEdge object on the current contour.

halfEdge.getVertex()

Gets the

Vertex object

at the head of the HalfEdge object.

Property

Description

halfEdge.id

Read-only; a unique integer identifier for the HalfEdge object.

halfEdge.index

An integer with a value of 0 or 1 that specifies the index for this HalfEdge object
in the parent edge.

This manual is related to the following products: