eu.mihosoft.vrl.v3d.ext.quickhull3d.Vertex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JavaCad Show documentation
Show all versions of JavaCad Show documentation
A Java based CSG Cad library
package eu.mihosoft.vrl.v3d.ext.quickhull3d;
// TODO: Auto-generated Javadoc
/**
* Represents vertices of the hull, as well as the points from
* which it is formed.
*
* @author John E. Lloyd, Fall 2004
*/
class Vertex
{
/**
* Spatial point associated with this vertex.
*/
Point3d pnt;
/**
* Back index into an array.
*/
int index;
/**
* List forward link.
*/
Vertex prev;
/**
* List backward link.
*/
Vertex next;
/**
* Current face that this vertex is outside of.
*/
Face face;
/**
* Constructs a vertex and sets its coordinates to 0.
*/
public Vertex()
{ pnt = new Point3d();
}
/**
* Constructs a vertex with the specified coordinates
* and index.
*
* @param x the x
* @param y the y
* @param z the z
* @param idx the idx
*/
public Vertex (double x, double y, double z, int idx)
{
pnt = new Point3d(x, y, z);
index = idx;
}
}