Packageaway3d.tools
Classpublic class Replicate

Class Replicate create a new Mesh object from transformed copies of the original. Replicate

Public Properties
 PropertyDefined by
  copies : int
Replicate
  positions : Number3D
Replicate
  rotations : Number3D
Replicate
  scales : Number3D
Replicate
Public Methods
 MethodDefined by
  
Replicate
(copies:int = 1, positions:Number3D = null, rotations:Number3D = null, scales:Number3D = null)
Class Replicate create a new Mesh object from transformed copies of the original.
Replicate
  
apply(mesh:Mesh):Mesh
Apply the replicate code to the mesh
Replicate
Property detail
copiesproperty
copies:int  [read-write]Implementation
    public function get copies():int
    public function set copies(value:int):void
positionsproperty 
positions:Number3D  [read-write]Implementation
    public function get positions():Number3D
    public function set positions(value:Number3D):void
rotationsproperty 
rotations:Number3D  [read-write]Implementation
    public function get rotations():Number3D
    public function set rotations(value:Number3D):void
scalesproperty 
scales:Number3D  [read-write]Implementation
    public function get scales():Number3D
    public function set scales(value:Number3D):void
Constructor detail
Replicate()constructor
public function Replicate(copies:int = 1, positions:Number3D = null, rotations:Number3D = null, scales:Number3D = null)Parameters
copies:int (default = 1) — copies [optional] int. Defines how repeats of the original mesh will be done. Default is 1.
 
positions:Number3D (default = null) — positions [optional] Number3D. Defines the offset x,y and z for the position increase. Default is 0,0,0.
 
rotations:Number3D (default = null) — rotations [optional] Number3D. Defines the offset x,y and z for the position increase. Default is 0,0,0.
 
scales:Number3D (default = null) — scales [optional] Number3D. Defines the offset x,y and z for the position increase. Default is 1,1,1.
Init Parameters
Method detail
apply()method
public function apply(mesh:Mesh):Mesh

Apply the replicate code to the mesh

Parameters
mesh:Mesh — mesh Mesh. The mesh that will be replicated according to properties such as positions, rotations, scales and copies.

Returns
Mesh — Mesh
Wiki link
Click to go to the wiki page for 'away3d.tools.Replicate'

Code examples

Comments