WireframeMapGenerator is a utility class to generate a wireframe texture for uniquely mapped meshes.
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.
|
Returns
| BitmapData — A BitmapData containing the texture underneath the wireframe.
|
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.
|
Returns