NGon is an object describing a shape in 3D of any number of points
area:Number
[read-only]
Calculates the area of an NGon
Implementation
public function get area():Number
arcane var _isSplitter:Boolean
public var material:Material
public var normal:Number3D
public var uvs:Array
public var vertices:Array
public function NGon()
Init Parameters
public function adjacent(nGon:NGon):Boolean
Tests if two NGons (partially) share an edge.
Parameters
| nGon:NGon — The NGon to test against.
|
Returns
| Boolean — Whether or the target NGon shares an edge with the current NGon.
|
public function classifyToPlane(compPlane:Plane3D):int
Classifies on which side of a plane this NGon falls
Parameters
Returns
public function clone():NGon
Creates a duplicate of this NGon
Returns
public function fromTriangle(face:Face):void
Converts a Face object to an NGon
Parameters
public function invert():void
Inverts the NGon
public function isNeglectable():Boolean
Determines if an NGon is too small to be of any use
Returns
arcane function removeColinears():void
public function split(splitPlane:Plane3D):Array
Splits the ngon into two according to a split plane
Parameters
Returns
| Array — Two new polygons. The first is on the positive side of the split plane, the second on the negative.
|
public function triangulate():Array
Triangulates the NGon
Returns
public function trim(trimPlane:Plane3D):void
Trims the NGon to the front side of a plane
Parameters
public function trimBack(trimPlane:Plane3D):void
Trims the NGon to the back side of a plane
Parameters