Packageaway3d.extrusions
Classpublic class Elevation

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
Elevation
  minElevation : Number
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  [read-write]Implementation
    public function get maxElevation():Number
    public function set maxElevation(value:Number):void
minElevationproperty 
minElevation:Number  [read-write]Implementation
    public function get minElevation():Number
    public function set minElevation(value:Number):void
Constructor detail
Elevation()constructor
public function Elevation() Init Parameters
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
Wiki link
Click to go to the wiki page for 'away3d.extrusions.Elevation'

Code examples

Comments