Method | Defined By | ||
---|---|---|---|
project(orientation:String, obj:ObjectContainer3D):void [static]
Class remaps the uv data of a mesh
| Projector |
Constant | Defined 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 |
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.
|
BACK | Constant |
public static const BACK:String = back
BOTTOM | Constant |
public static const BOTTOM:String = bottom
CYLINDRICAL_X | Constant |
public static const CYLINDRICAL_X:String = cylindricalx
CYLINDRICAL_Y | Constant |
public static const CYLINDRICAL_Y:String = cylindricaly
CYLINDRICAL_Z | Constant |
public static const CYLINDRICAL_Z:String = cylindricalz
FRONT | Constant |
public static const FRONT:String = front
LEFT | Constant |
public static const LEFT:String = left
RIGHT | Constant |
public static const RIGHT:String = right
SPHERICAL | Constant |
public static const SPHERICAL:String = spherical
TOP | Constant |
public static const TOP:String = top