Packageaway3d.tools.utils
Classpublic class Projector
InheritanceProjector Inheritance Object



Public Methods
 MethodDefined By
  
project(orientation:String, obj:ObjectContainer3D):void
[static] Class remaps the uv data of a mesh
Projector
Public Constants
 ConstantDefined By
  BACK : String = back
[static]
Projector
  BOTTOM : String = bottom
[static]
Projector
  CYLINDRICAL_X : String = cylindricalx
[static]
Projector
  CYLINDRICAL_Y : String = cylindricaly
[static]
Projector
  CYLINDRICAL_Z : String = cylindricalz
[static]
Projector
  FRONT : String = front
[static]
Projector
  LEFT : String = left
[static]
Projector
  RIGHT : String = right
[static]
Projector
  SPHERICAL : String = spherical
[static]
Projector
  TOP : String = top
[static]
Projector
Method Detail
project()method
public static function project(orientation:String, obj:ObjectContainer3D):void

Class remaps the uv data of a mesh

Parameters

orientation:String — String. Defines the projection direction and methods. Note: As we use triangles, cylindrical and spherical projections might require correction, as some faces, may have vertices pointing at other side of the map, causing some faces to be rendered as a whole reverted map.
 
obj:ObjectContainer3D — ObjectContainer3D. The ObjectContainer3D to remap.

Constant Detail
BACKConstant
public static const BACK:String = back

BOTTOMConstant 
public static const BOTTOM:String = bottom

CYLINDRICAL_XConstant 
public static const CYLINDRICAL_X:String = cylindricalx

CYLINDRICAL_YConstant 
public static const CYLINDRICAL_Y:String = cylindricaly

CYLINDRICAL_ZConstant 
public static const CYLINDRICAL_Z:String = cylindricalz

FRONTConstant 
public static const FRONT:String = front

LEFTConstant 
public static const LEFT:String = left

RIGHTConstant 
public static const RIGHT:String = right

SPHERICALConstant 
public static const SPHERICAL:String = spherical

TOPConstant 
public static const TOP:String = top