Packagesandy.materials.attributes
Classpublic final class VertexNormalAttributes
InheritanceVertexNormalAttributes Inheritance LineAttributes Inheritance AAttributes

Display the vertex normals of a given object.

Developed originally for a debug purpose, this class allows you to create some special effects, displaying the normal of each vertex.



Public Properties
 PropertyDefined by
 Inheritedalpha : Number
Indicates the alpha transparency value of the line.
LineAttributes
 Inheritedcolor : Number
The line color.
LineAttributes
 Inheritedflags : uint
Returns the specific flags of this attribute.
AAttributes
  length : Number
The line length.
VertexNormalAttributes
 Inheritedmodified : Boolean
Whether the attribute has been modified since it's last render.
LineAttributes
 Inheritedthickness : Number
The line thickness.
LineAttributes
Public Methods
 MethodDefined by
  
VertexNormalAttributes(p_nLength:Number = 10, p_nThickness:uint = 1, p_nColor:uint = 0, p_nAlpha:Number = 1)
Creates a new VertexNormalAttributes object.
VertexNormalAttributes
 Inherited
begin(p_oScene:Scene3D):void
Method called before the display list rendering.
AAttributes
 Inherited
draw(p_oGraphics:Graphics, p_oPolygon:Polygon, p_oMaterial:Material, p_oScene:Scene3D):void
Draws attribute to the graphics object.
AAttributes
 Inherited
drawOnSprite(p_oSprite:Sprite2D, p_oMaterial:Material, p_oScene:Scene3D):void
Applies attribute to a sprite.
AAttributes
 Inherited
finish(p_oScene:Scene3D):void
Method called right after the display list rendering.
AAttributes
 Inherited
init(p_oPolygon:Polygon):void
Allows to proceed to an initialization to know when the polyon isn't lined to the material.
AAttributes
 Inherited
unlink(p_oPolygon:Polygon):void
Remove all the initialization (opposite of init).
AAttributes
Property detail
lengthproperty
length:Number  [read-write]

The line length.

Implementation
    public function get length():Number
    public function set length(value:Number):void
Constructor detail
VertexNormalAttributes()constructor
public function VertexNormalAttributes(p_nLength:Number = 10, p_nThickness:uint = 1, p_nColor:uint = 0, p_nAlpha:Number = 1)

Creates a new VertexNormalAttributes object.

Parameters
p_nLength:Number (default = 10) — The length of the segment.
 
p_nThickness:uint (default = 1) — The line thickness.
 
p_nColor:uint (default = 0) — The line color.
 
p_nAlpha:Number (default = 1) — The alpha transparency value of the material.