Packageaway3d.tools.utils
Classpublic class Bounds
InheritanceBounds Inheritance Object

Helper Class to retrieve objects bounds Bounds



Public Properties
 PropertyDefined By
  depth : Number
[static] [read-only]
Bounds
  height : Number
[static] [read-only]
Bounds
  maxX : Number
[static] [read-only]
Bounds
  maxY : Number
[static] [read-only]
Bounds
  maxZ : Number
[static] [read-only]
Bounds
  minX : Number
[static] [read-only]
Bounds
  minY : Number
[static] [read-only]
Bounds
  minZ : Number
[static] [read-only]
Bounds
  width : Number
[static] [read-only]
Bounds
Public Methods
 MethodDefined By
  
getMeshBounds(mesh:Mesh):void
[static] Calculate the bounds of a Mesh object
Bounds
  
[static] Calculate the bounds of an ObjectContainer3D object
Bounds
  
getVerticesVectorBounds(vertices:Vector.<Number>):void
[static] Calculate the bounds from a vector of number representing the vertices.
Bounds
Property Detail
depthproperty
depth:Number  [read-only]


Implementation
    public static function get depth():Number
heightproperty 
height:Number  [read-only]


Implementation
    public static function get height():Number
maxXproperty 
maxX:Number  [read-only]


Implementation
    public static function get maxX():Number
maxYproperty 
maxY:Number  [read-only]


Implementation
    public static function get maxY():Number
maxZproperty 
maxZ:Number  [read-only]


Implementation
    public static function get maxZ():Number
minXproperty 
minX:Number  [read-only]


Implementation
    public static function get minX():Number
minYproperty 
minY:Number  [read-only]


Implementation
    public static function get minY():Number
minZproperty 
minZ:Number  [read-only]


Implementation
    public static function get minZ():Number
widthproperty 
width:Number  [read-only]


Implementation
    public static function get width():Number
Method Detail
getMeshBounds()method
public static function getMeshBounds(mesh:Mesh):void

Calculate the bounds of a Mesh object

Parameters

mesh:Mesh — Mesh. The Mesh to get the bounds from. Use the getters of this class to retrieve the results

getObjectContainerBounds()method 
public static function getObjectContainerBounds(container:ObjectContainer3D):void

Calculate the bounds of an ObjectContainer3D object

Parameters

container:ObjectContainer3D — ObjectContainer3D. The ObjectContainer3D to get the bounds from. Use the getters of this class to retrieve the results

getVerticesVectorBounds()method 
public static function getVerticesVectorBounds(vertices:Vector.<Number>):void

Calculate the bounds from a vector of number representing the vertices. <x,y,z,x,y,z.....>

Parameters

vertices:Vector.<Number> — Vector.<Number>. The vertices to get the bounds from. Use the getters of this class to retrieve the results