Packagealternativa.engine3d.core
Classpublic final class Vertex

Polygon vertex.



Public Properties
 PropertyDefined by
  coords : Point3D
Vertex coordinates.
Vertex
  faces : Set
[read-only] A set of faces owning this vertex.
Vertex
  id : Object
[read-only] Vertex identifier in Mesh-object.
Vertex
  mesh : Mesh
[read-only] Mesh-object having given vertex.
Vertex
  x : Number
X coordinate.
Vertex
  y : Number
Y coordinate.
Vertex
  z : Number
Z coordinate.
Vertex
Public Methods
 MethodDefined by
  
Vertex(x:Number = 0, y:Number = 0, z:Number = 0)
Create vertex instance.
Vertex
  
toString():String
Get string representation of object.
Vertex
Property detail
coordsproperty
coords:Point3D  [read-write]

Vertex coordinates.

Implementation
    public function get coords():Point3D
    public function set coords(value:Point3D):void
facesproperty 
faces:Set  [read-only]

A set of faces owning this vertex. Every element of the set is an instance of altertnativa.engine3d.core.Face class.

Implementation
    public function get faces():Set

See also

idproperty 
id:Object  [read-only]

Vertex identifier in Mesh-object. If vertex does not belong to Mesh-object, returns null.

Implementation
    public function get id():Object
meshproperty 
mesh:Mesh  [read-only]

Mesh-object having given vertex.

Implementation
    public function get mesh():Mesh
xproperty 
x:Number  [read-write]

X coordinate.

Implementation
    public function get x():Number
    public function set x(value:Number):void
yproperty 
y:Number  [read-write]

Y coordinate.

Implementation
    public function get y():Number
    public function set y(value:Number):void
zproperty 
z:Number  [read-write]

Z coordinate.

Implementation
    public function get z():Number
    public function set z(value:Number):void
Constructor detail
Vertex()constructor
public function Vertex(x:Number = 0, y:Number = 0, z:Number = 0)

Create vertex instance.

Parameters
x:Number (default = 0)X coordinate.
 
y:Number (default = 0)Y coordinate.
 
z:Number (default = 0)Z coordinate.
Method detail
toString()method
public function toString():String

Get string representation of object.

Returns
Stringa string representation of the object