artofillusion.object
Class TriangleMesh.Vertex

java.lang.Object
  extended by artofillusion.object.MeshVertex
      extended by artofillusion.object.TriangleMesh.Vertex
Enclosing class:
TriangleMesh

public class TriangleMesh.Vertex
extends MeshVertex

A vertex specifies a position vector, the number of edges which share the vertex, and the "first" edge. If the vertex is in the interior of the mesh, any edge can be the first one. If it is on the boundary, then the first edge must be one of the two boundary edges. A vertex also has a "smoothness" parameter associated with it.


Field Summary
 int edges
           
 int firstEdge
           
 float smoothness
           
 
Fields inherited from class artofillusion.object.MeshVertex
ikJoint, ikWeight, r
 
Constructor Summary
TriangleMesh.Vertex(TriangleMesh.Vertex v)
           
TriangleMesh.Vertex(Vec3 p)
           
 
Method Summary
 void clear()
          Set the various fields to zero.
 boolean clockwise()
          This method tells whether the list of edges returned by getEdges() are ordered clockwise or counter-clockwise.
 void copy(TriangleMesh.Vertex v)
          Make this vertex identical to another one.
 int[] getEdges()
          Construct a list of all edges which share the vertex.
 void scale(double d)
          Multiple the fields of this vertex by a constant.
 
Methods inherited from class artofillusion.object.MeshVertex
blend
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

edges

public int edges

firstEdge

public int firstEdge

smoothness

public float smoothness
Constructor Detail

TriangleMesh.Vertex

public TriangleMesh.Vertex(Vec3 p)

TriangleMesh.Vertex

public TriangleMesh.Vertex(TriangleMesh.Vertex v)
Method Detail

copy

public void copy(TriangleMesh.Vertex v)
Make this vertex identical to another one.


scale

public void scale(double d)
Multiple the fields of this vertex by a constant.


clear

public void clear()
Set the various fields to zero.


getEdges

public int[] getEdges()
Construct a list of all edges which share the vertex.


clockwise

public boolean clockwise()
This method tells whether the list of edges returned by getEdges() are ordered clockwise or counter-clockwise.



Copyright © 1999-2011 by Peter Eastman.