Packageaway3d.core.utils
Classpublic class FaceUtils

Public Methods
 MethodDefined by
  
hasEdgeOnPlane(face:Face, plane:Plane3D, epsilon:Number = 0.001):Boolean
[static] Tests if an edge of the face lies on a given plane
FaceUtils
  
scaleAboutCenter(face:Face, scale:Number):void
[static] Scales the face by a given factor about its unweighed center.
FaceUtils
Method detail
hasEdgeOnPlane()method
public static function hasEdgeOnPlane(face:Face, plane:Plane3D, epsilon:Number = 0.001):Boolean

Tests if an edge of the face lies on a given plane

Parameters
face:Face — The plane to test against
 
plane:Plane3D
 
epsilon:Number (default = 0.001)

Returns
Boolean — Whether or not an edge of this Face lies on the plane
scaleAboutCenter()method 
public static function scaleAboutCenter(face:Face, scale:Number):void

Scales the face by a given factor about its unweighed center. NOTE: Supports only irregular faces for now.

Parameters
face:Face — [Number] The amount factor to scale the face.
 
scale:Number
Wiki link
Click to go to the wiki page for 'away3d.core.utils.FaceUtils'

Code examples

Comments