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
 Inheritedid : Number
The unique id of this material
Material
 InheritedlightingEnable : Boolean = false
Specify is the material can receive light and apply the lightAttributes if specified.
Material
 Inheritedmodified : Boolean
The modified state of this material.
Material
 Inheritedrepeat : Boolean
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 Default value is set to false.
Material
Protected Properties
 PropertyDefined by
 Inheritedm_bModified : Boolean
Material
 Inheritedm_oType : MaterialType
Material
 Inherited_useLight : Boolean = false
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
init(f:Polygon):void
Not used in this version of Sandy.
Material
  
renderPolygon(p_oScene:Scene3D, p_oPolygon:Polygon, p_mcContainer:Sprite):void
Renders this material on the face it dresses.
WireFrameMaterial
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 - Default 1
 
p_nColor:uint (default = 0) — The color of the lines - Default 0
 
p_nAlpha:Number (default = 1) — The alpha value in percent of full opacity ( 0 - 1 )
 
p_oAttr:MaterialAttributes (default = null) — The attributes for this material
Method detail
renderPolygon()method
public override function renderPolygon(p_oScene:Scene3D, p_oPolygon:Polygon, p_mcContainer:Sprite):void

Renders this material on the face it dresses.

Parameters
p_oScene:Scene3D — The current scene
 
p_oPolygon:Polygon — The face to be rendered
 
p_mcContainer:Sprite — The container to draw on