WireframeMapGenerator is a utility class to generate a wireframe texture for uniquely mapped meshes.
Static methods
staticgenerateSolidMap(mesh:Mesh, lineColor:Int = 0xffffff, lineThickness:Float = 2, fillColor:Int = 0, fillAlpha:Float = 0, width:Int = 512, height:Int = 512):BitmapData
Create a wireframe map with a solid colour fill.
Parameters:
mesh | The Mesh object for which to create the wireframe texture. |
|---|---|
lineColor | The wireframe's line colour. |
lineThickness | The wireframe's line thickness. |
fillColor | The colour of the wireframe fill. |
fillAlpha | The alpha of the wireframe fill. |
width | The texture's width. |
height | The texture's height. |
Returns:
A BitmapData containing the texture underneath the wireframe.
staticgenerateTexturedMap(mesh:Mesh, bitmapData:BitmapData, lineColor:Int = 0xffffff, lineThickness:Float = 2):BitmapData
Create a wireframe map with a texture fill.
Parameters:
mesh | The Mesh object for which to create the wireframe texture. |
|---|---|
bitmapData | The BitmapData to use as the fill texture. |
lineColor | The wireframe's line colour. |
lineThickness | The wireframe's line thickness. |