| Package | away3d.core.geom |
| Class | public final class NGon |
| Inheritance | NGon Object |
| Property | Defined By | ||
|---|---|---|---|
| area : Number [read-only]
Calculates the area of an NGon
| NGon | ||
| material : Material | NGon | ||
| normal : Vector3D | NGon | ||
| plane : Plane3D | NGon | ||
| uvs : Vector.<UV> | NGon | ||
| vertices : Vector.<Vertex> | NGon | ||
| Method | Defined By | ||
|---|---|---|---|
NGon()
Creates an NGon object
| NGon | ||
Tests if two NGons (partially) share an edge. | NGon | ||
classifyToPlane(compPlane:Plane3D):int
Classifies on which side of a plane this NGon falls
| NGon | ||
Creates a duplicate of this NGon
| NGon | ||
fromTriangle(face:Face):void
Converts a Face object to an NGon
| NGon | ||
invert():void
Inverts the NGon
| NGon | ||
isNeglectable():Boolean
Determines if an NGon is too small to be of any use
| NGon | ||
Splits the ngon into two according to a split plane
| NGon | ||
triangulate():Vector.<Face>
Triangulates the NGon
| NGon | ||
Trims the NGon to the front side of a plane
| NGon | ||
Trims the NGon to the back side of a plane
| NGon | ||
| _isSplitter | property |
arcane var _isSplitter:Boolean| area | property |
area:Number [read-only] Calculates the area of an NGon
public function get area():Number| material | property |
public var material:Material| normal | property |
public var normal:Vector3D| plane | property |
public var plane:Plane3D| uvs | property |
public var uvs:Vector.<UV>| vertices | property |
public var vertices:Vector.<Vertex>| NGon | () | Constructor |
public function NGon()Creates an NGon object
| adjacent | () | method |
public function adjacent(nGon:NGon):BooleanTests if two NGons (partially) share an edge.
Parameters
nGon:NGon — The NGon to test against.
|
Boolean — Whether or the target NGon shares an edge with the current NGon.
|
| classifyToPlane | () | method |
public function classifyToPlane(compPlane:Plane3D):intClassifies on which side of a plane this NGon falls
Parameters
compPlane:Plane3D |
int |
| clone | () | method |
| fromTriangle | () | method |
| invert | () | method |
public function invert():voidInverts the NGon
| isNeglectable | () | method |
public function isNeglectable():BooleanDetermines if an NGon is too small to be of any use
ReturnsBoolean |
| removeColinears | () | method |
arcane function removeColinears():void| split | () | method |
public function split(splitPlane:Plane3D):Vector.<NGon>Splits the ngon into two according to a split plane
Parameters
splitPlane:Plane3D |
Vector.<NGon> — Two new polygons. The first is on the positive side of the split plane, the second on the negative.
|
| triangulate | () | method |
| trim | () | method |
public function trim(trimPlane:Plane3D):voidTrims the NGon to the front side of a plane
Parameters
trimPlane:Plane3D |
| trimBack | () | method |
public function trimBack(trimPlane:Plane3D):voidTrims the NGon to the back side of a plane
Parameters
trimPlane:Plane3D |