Package | away3d.materials.utils |
Class | public class WireframeMapGenerator |
Inheritance | WireframeMapGenerator Object |
Method | Defined By | ||
---|---|---|---|
generateSolidMap(mesh:Mesh, lineColor:uint = 0xffffff, lineThickness:Number = 2, fillColor:uint = 0, fillAlpha:Number = 0, width:uint = 512, height:uint = 512):BitmapData [static]
Create a wireframe map with a solid colour fill. | WireframeMapGenerator | ||
generateTexturedMap(mesh:Mesh, bitmapData:BitmapData, lineColor:uint = 0xffffff, lineThickness:Number = 2):BitmapData [static]
Create a wireframe map with a texture fill. | WireframeMapGenerator |
generateSolidMap | () | method |
public static function generateSolidMap(mesh:Mesh, lineColor:uint = 0xffffff, lineThickness:Number = 2, fillColor:uint = 0, fillAlpha:Number = 0, width:uint = 512, height:uint = 512):BitmapData
Create a wireframe map with a solid colour fill.
Parameters
mesh:Mesh — The Mesh object for which to create the wireframe texture.
| |
lineColor:uint (default = 0xffffff ) — The wireframe's line colour.
| |
lineThickness:Number (default = 2 ) — The wireframe's line thickness.
| |
fillColor:uint (default = 0 ) — The colour of the wireframe fill.
| |
fillAlpha:Number (default = 0 ) — The alpha of the wireframe fill.
| |
width:uint (default = 512 ) — The texture's width.
| |
height:uint (default = 512 ) — The texture's height.
|
BitmapData — A BitmapData containing the texture underneath the wireframe.
|
generateTexturedMap | () | method |
public static function generateTexturedMap(mesh:Mesh, bitmapData:BitmapData, lineColor:uint = 0xffffff, lineThickness:Number = 2):BitmapData
Create a wireframe map with a texture fill.
Parameters
mesh:Mesh — The Mesh object for which to create the wireframe texture.
| |
bitmapData:BitmapData — The BitmapData to use as the fill texture.
| |
lineColor:uint (default = 0xffffff ) — The wireframe's line colour.
| |
lineThickness:Number (default = 2 ) — The wireframe's line thickness.
|
BitmapData |