Class Triangulation
- java.lang.Object
-
- gov.nih.mipav.view.renderer.WildMagic.Poisson.Geometry.Triangulation
-
public class Triangulation extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.HashMap<java.lang.Long,java.lang.Integer>
edgeMap
java.util.Vector<TriangulationEdge>
edges
java.util.Vector<Point3D>
points
java.util.Vector<TriangulationTriangle>
triangles
-
Constructor Summary
Constructors Constructor Description Triangulation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
addTriangle(int p1, int p2, int p3)
double
area()
double
area(int tIndex)
double
area(int p1, int p2, int p3)
void
CrossProduct(Point3D p1, Point3D p2, Point3D p)
protected static long
EdgeIndex(int p1, int p2)
int
factor(int tIndex, int[] p1, int[] p2, int[] p3)
int
flipMinimize(int eIndex)
double
Length(Point3D p)
double
SquareLength(Point3D p)
-
-
-
Field Detail
-
points
public java.util.Vector<Point3D> points
-
edges
public java.util.Vector<TriangulationEdge> edges
-
triangles
public java.util.Vector<TriangulationTriangle> triangles
-
edgeMap
protected java.util.HashMap<java.lang.Long,java.lang.Integer> edgeMap
-
-
Method Detail
-
factor
public int factor(int tIndex, int[] p1, int[] p2, int[] p3)
-
area
public double area()
-
area
public double area(int tIndex)
-
area
public double area(int p1, int p2, int p3)
-
SquareLength
public double SquareLength(Point3D p)
-
Length
public double Length(Point3D p)
-
flipMinimize
public int flipMinimize(int eIndex)
-
addTriangle
public int addTriangle(int p1, int p2, int p3)
-
EdgeIndex
protected static long EdgeIndex(int p1, int p2)
-
-