Packagesandy.materials
Classpublic final class WireFrameMaterial
InheritanceWireFrameMaterial Inheritance Material

Displays the faces of a 3D shape as a wire frame.

This material is used to represent a kind a naked view of a Shape3D. It shows all the edges with a certain thickness, color and alpha that you can specify inside the constructor



Public Properties
 PropertyDefined by
 Inheritedattributes : MaterialAttributes
The attributes of this material.
Material
 Inheritedfilters : Array
The array of filters for this material.
Material
 Inheritedflags : uint
Contains specific material flags.
Material
 Inheritedid : Number
The unique id of this material.
Material
 InheritedlightingEnable : Boolean = false
Specifies if the material can receive light and have light attributes applied to it.
Material
 Inheritedmodified : Boolean
The modified state of this material.
Material
 Inheritedrepeat : Boolean = true
The repeat property.
Material
 Inheritedtype : MaterialType
The material type of this material.
Material
 InheriteduseVertexNormal : Boolean = false
Specify if the material use the vertex normal information.
Material
Public Methods
 MethodDefined by
  
WireFrameMaterial(p_nThickness:uint = 1, p_nColor:uint = 0, p_nAlpha:Number = 1, p_oAttr:MaterialAttributes = null)
Creates a new WireFrameMaterial.
WireFrameMaterial
 Inherited
begin(p_oScene:Scene3D):void
Calls begin method of the MaterialAttributes associated with this material.
Material
 Inherited
finish(p_oScene:Scene3D):void
Calls finish method of the MaterialAttributes associated with this material.
Material
 Inherited
init(p_oPolygon:Polygon):void
Calls init method of the MaterialAttributes associated with this material.
Material
 Inherited
renderPolygon(p_oScene:Scene3D, p_oPolygon:Polygon, p_mcContainer:Sprite):void
Renders the polygon dress in this material.
Material
 Inherited
renderSprite(p_oSprite:Sprite2D, p_oMaterial:Material, p_oScene:Scene3D):void
Renders the sprite dress in this material.
Material
 Inherited
unlink(p_oPolygon:Polygon):void
Calls unlink method of the MaterialAttributes associated with this material.
Material
Constructor detail
WireFrameMaterial()constructor
public function WireFrameMaterial(p_nThickness:uint = 1, p_nColor:uint = 0, p_nAlpha:Number = 1, p_oAttr:MaterialAttributes = null)

Creates a new WireFrameMaterial.

Parameters
p_nThickness:uint (default = 1) — The thickness of the lines.
 
p_nColor:uint (default = 0) — The color of the lines.
 
p_nAlpha:Number (default = 1) — The alpha transparency value of the material.
 
p_oAttr:MaterialAttributes (default = null) — The attributes for this material.

See also