Packageaway3d.materials.utils
Classpublic class MultipleMaterials
InheritanceMultipleMaterials Inheritance Object



Public Properties
 PropertyDefined By
  back : MaterialBase
Defines the material applied to the back side of the cube.
MultipleMaterials
  bottom : MaterialBase
Defines the material applied to the bottom side of the cube.
MultipleMaterials
  front : MaterialBase
Defines the material applied to the front side of the cube.
MultipleMaterials
  left : MaterialBase
Defines the material applied to the left side of the cube.
MultipleMaterials
  right : MaterialBase
Defines the material applied to the right side of the cube.
MultipleMaterials
  top : MaterialBase
Defines the material applied to the top side of the cube.
MultipleMaterials
Public Methods
 MethodDefined By
  
MultipleMaterials(front:MaterialBase = null, back:MaterialBase = null, left:MaterialBase = null, right:MaterialBase = null, top:MaterialBase = null)
Creates a new MultipleMaterials object.
MultipleMaterials
Property Detail
backproperty
back:MaterialBase

Defines the material applied to the back side of the cube.


Implementation
    public function get back():MaterialBase
    public function set back(value:MaterialBase):void
bottomproperty 
bottom:MaterialBase

Defines the material applied to the bottom side of the cube.


Implementation
    public function get bottom():MaterialBase
    public function set bottom(value:MaterialBase):void
frontproperty 
front:MaterialBase

Defines the material applied to the front side of the cube.


Implementation
    public function get front():MaterialBase
    public function set front(value:MaterialBase):void
leftproperty 
left:MaterialBase

Defines the material applied to the left side of the cube.


Implementation
    public function get left():MaterialBase
    public function set left(value:MaterialBase):void
rightproperty 
right:MaterialBase

Defines the material applied to the right side of the cube.


Implementation
    public function get right():MaterialBase
    public function set right(value:MaterialBase):void
topproperty 
top:MaterialBase

Defines the material applied to the top side of the cube.


Implementation
    public function get top():MaterialBase
    public function set top(value:MaterialBase):void
Constructor Detail
MultipleMaterials()Constructor
public function MultipleMaterials(front:MaterialBase = null, back:MaterialBase = null, left:MaterialBase = null, right:MaterialBase = null, top:MaterialBase = null)

Creates a new MultipleMaterials object. Class can hold up to 6 materials. Class is designed to work as typed object for materials setters in a multitude of classes such as Cube, LatheExtrude (with thickness) etc...

Parameters
front:MaterialBase (default = null) — [optional] The front material.
 
back:MaterialBase (default = null) — [optional] The back material.
 
left:MaterialBase (default = null) — [optional] The left material.
 
right:MaterialBase (default = null) — [optional] The right material.
 
top:MaterialBase (default = null) — [optional] The top material.