Adobe Extending Flash Professional CS4 Uživatelský manuál Strana 313

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 560
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 312
291
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.
Zobrazit stránku 312
1 2 ... 308 309 310 311 312 313 314 315 316 317 318 ... 559 560

Komentáře k této Příručce

Žádné komentáře