Packageaway3d.extrusions
Classpublic class Elevation
InheritanceElevation Inheritance Object

Class Elevation returns a multidimentional array of Vector3D's to pass to the SkinClass in order to generate an elevated mesh from. Elevation



Public Properties
 PropertyDefined By
  maxElevation : Number
Locks elevation factor above this level.
Elevation
  minElevation : Number
Locks elevation factor beneath this level.
Elevation
Public Methods
 MethodDefined By
  
Creates a generate Elevation object.
Elevation
  
generate(sourceBmd:BitmapData, channel:String = r, subdivisionX:int = 10, subdivisionY:int = 10, scalingX:Number = 1, scalingY:Number = 1, elevate:Number = .5):Array
Generate the Array representing the mesh
Elevation
Property Detail
maxElevationproperty
maxElevation:Number

Locks elevation factor above this level. Default is 255;


Implementation
    public function get maxElevation():Number
    public function set maxElevation(value:Number):void
minElevationproperty 
minElevation:Number

Locks elevation factor beneath this level. Default is 0;


Implementation
    public function get minElevation():Number
    public function set minElevation(value:Number):void
Constructor Detail
Elevation()Constructor
public function Elevation()

Creates a generate Elevation object.

####INIT####
Method Detail
generate()method
public function generate(sourceBmd:BitmapData, channel:String = r, subdivisionX:int = 10, subdivisionY:int = 10, scalingX:Number = 1, scalingY:Number = 1, elevate:Number = .5):Array

Generate the Array representing the mesh

Parameters

sourceBmd:BitmapData — Bitmapdata. The bitmapData to read from.
 
channel:String (default = r) — [optional] String. The channel information to read. supported "a", alpha, "r", red, "g", green, "b", blue and "av" (averages and luminance). Default is red channel "r".
 
subdivisionX:int (default = 10) — [optional] int. The subdivision to read the pixels along the x axis. Default is 10.
 
subdivisionY:int (default = 10) — [optional] int. The subdivision to read the pixels along the y axis. Default is 10.
 
scalingX:Number (default = 1) — [optional] Number. The scale multiplier along the x axis. Default is 1.
 
scalingY:Number (default = 1) — [optional] Number. The scale multiplier along the y axis. Default is 1.
 
elevate:Number (default = .5) — [optional] Number. The scale multiplier along the z axis. Default is .5.

Returns
Array