Packageaway3d.materials.utils
Classpublic class Projector

Class remaps the uvs of an Object3D for a given orientation: projection strings = "front", "back", "top", "bottom", "left","right", "spherical" or "spherical2"

Public Methods
 MethodDefined by
  
project(orientation:String, object3d:Object3D, selection:Array = null):void
[static] Applies the mapping to the Object3D object according to string orientation
Projector
Method detail
project()method
public static function project(orientation:String, object3d:Object3D, selection:Array = null):void

Applies the mapping to the Object3D object according to string orientation

Parameters
orientation:String — orientation String. Defines the way the map will be projected onto the Object3D. orientation value can be: "front", "back", "top", "bottom", "left", "right", "spherical" or "spherical2"
 
object3d:Object3D — object3d Object3d. The Object3D to remap.
 
selection:Array (default = null) — selection Array. An array of booleans that defines if vertexes must be considered for the bounds. Applicable only if Object3D is type Mesh.
Wiki link
Click to go to the wiki page for 'away3d.materials.utils.Projector'

Code examples

Comments