Packageaway3d.primitives.data
Classpublic class WeightedVertex
InheritanceWeightedVertex Inheritance Vertex Inheritance ValueObject Inheritance flash.events.EventDispatcher

A WeightedVertex that simply extends vertex with a w weight property. Properties x, y, z and w represent a 3d point in space with nurb weighting.



Public Properties
 PropertyDefined By
 Inheritedextra : Object
An object that contains user defined properties.
Vertex
 Inheritedgeometry : Geometry
Vertex
  nurbData : Object
WeightedVertex
 Inheritedparents : Vector.<Element>
Vertex
 Inheritedposition : Vector3D
[read-only] Represents the vertex position vector
Vertex
 InheritedskinVertex : SkinVertex
Vertex
  w : Number
WeightedVertex
 Inheritedx : Number
Defines the x coordinate of the vertex relative to the local coordinates of the parent mesh object.
Vertex
 Inheritedy : Number
Represents the y coordinate of the vertex relative to the local coordinates of the parent mesh object.
Vertex
 Inheritedz : Number
Represents the z coordinate of the vertex relative to the local coordinates of the parent mesh object.
Vertex
Public Methods
 MethodDefined By
  
WeightedVertex(x:Number = 0, y:Number = 0, z:Number = 0, wVal:Number = 1)
Creates a new WeightedVertex object.
WeightedVertex
 Inherited
add(value:Vector3D):void
Adjusts the position of the vertex object by Vector3D.
Vertex
 Inherited
addOnChange(listener:Function):void
ValueObject
 Inherited
adjust(x:Number, y:Number, z:Number, k:Number = 1):void
Adjusts the position of the vertex object incrementally.
Vertex
 Inherited
Duplicates the vertex properties to another Vertex object
Vertex
 Inherited
[static] Get the middle-point of two vertices
Vertex
 Inherited
[static] private Returns the middle-point of two vertices
Vertex
 Inherited
Applies perspective distortion
Vertex
 Inherited
removeOnChange(listener:Function):void
ValueObject
 Inherited
reset():void
Reset the position of the vertex object by Vector3D.
Vertex
 Inherited
setValue(x:Number, y:Number, z:Number):void
Sets the vertex coordinates
Vertex
 Inherited
toString():String
[override] Used to trace the values of a vertex object.
Vertex
 Inherited
weighted(a:Vertex, b:Vertex, aw:Number, bw:Number):Vertex
[static] Get the weighted average of two vertices
Vertex
Protected Methods
 MethodDefined By
 Inherited
ValueObject
Property Detail
nurbDataproperty
public var nurbData:Object

wproperty 
public var w:Number

Constructor Detail
WeightedVertex()Constructor
public function WeightedVertex(x:Number = 0, y:Number = 0, z:Number = 0, wVal:Number = 1)

Creates a new WeightedVertex object.

Parameters
x:Number (default = 0) — [optional] The local x position of the vertex. Defaults to 0.
 
y:Number (default = 0) — [optional] The local y position of the vertex. Defaults to 0.
 
z:Number (default = 0) — [optional] The local z position of the vertex. Defaults to 0.
 
wVal:Number (default = 1) — [optional] The local w weight of the vertex. Defaults to 1.
####INIT####