| Package | away3d.tools |
| Class | public class Replicate |
| Inheritance | Replicate Object |
Replicate
| Property | Defined By | ||
|---|---|---|---|
| copies : int
Defines howmany copies of the priginal mesh will be done. | Replicate | ||
| positions : Vector3D
Defines the offset x, y and z applied during the replicate process
| Replicate | ||
| rotations : Vector3D
Defines the rotations x, y and z applied during the replicate process
| Replicate | ||
| scales : Vector3D
Defines the scales x, y and z applied during the replicate process
| Replicate | ||
| Method | Defined By | ||
|---|---|---|---|
Replicate(copies:int = 1, positions:Vector3D = null, rotations:Vector3D = null, scales:Vector3D = null)
Class Replicate create a new Mesh object from transformed copies of the original. | Replicate | ||
Apply the replicate code to the mesh
| Replicate | ||
| copies | property |
copies:intDefines howmany copies of the priginal mesh will be done.
public function get copies():int public function set copies(value:int):void| positions | property |
positions:Vector3DDefines the offset x, y and z applied during the replicate process
public function get positions():Vector3D public function set positions(value:Vector3D):void| rotations | property |
rotations:Vector3DDefines the rotations x, y and z applied during the replicate process
public function get rotations():Vector3D public function set rotations(value:Vector3D):void| scales | property |
scales:Vector3DDefines the scales x, y and z applied during the replicate process
public function get scales():Vector3D public function set scales(value:Vector3D):void| Replicate | () | Constructor |
public function Replicate(copies:int = 1, positions:Vector3D = null, rotations:Vector3D = null, scales:Vector3D = null)
Class Replicate create a new Mesh object from transformed copies of the original. Replicate
copies:int (default = 1) — [optional] int. Defines how repeats of the original mesh will be done. Default is 1.
| |
positions:Vector3D (default = null) — [optional] Vector3D. Defines the offset x,y and z for the position increase. Default is 0,0,0.
| |
rotations:Vector3D (default = null) — [optional] Vector3D. Defines the offset x,y and z for the position increase. Default is 0,0,0.
| |
scales:Vector3D (default = null) — [optional] Vector3D. Defines the offset x,y and z for the position increase. Default is 1,1,1.
|
| apply | () | method |
public function apply(mesh:Mesh):MeshApply the replicate code to the mesh
Parameters
mesh:Mesh — Mesh. The mesh that will be replicated according to properties such as positions, rotations, scales and copies.
|
Mesh — Mesh
|