|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.starhope.appius.physica.TriangulationAlgorithm
org.starhope.appius.physica.CubicAlgorithm
class CubicAlgorithm
CubicAlgorithm class. O(n^3) algorithm.
Field Summary | |
---|---|
(package private) Circle |
bC
WRITEME |
(package private) static String |
cubicAlgName
WRITEME |
(package private) int |
i
WRITEME |
(package private) int |
nFaces
WRITEME |
(package private) int |
s
WRITEME |
(package private) int |
t
WRITEME |
(package private) int |
u
WRITEME |
Fields inherited from class org.starhope.appius.physica.TriangulationAlgorithm |
---|
algName, edgeState, insideState, nStates, pointState, state, triangleState, triangulationState |
Constructor Summary | |
---|---|
CubicAlgorithm(Triangulation tri,
int nPoints)
|
Method Summary | |
---|---|
private void |
addOrUpdateTriangle(int eI,
Triangulation tri,
int numFaces)
Add new triangle or update edge info if s-t is on hull. |
void |
completeFacet(int eI,
Triangulation tri,
int numFaces)
Complete a facet by looking for the circle free point to the left of the edge "e_i". |
Point2D |
findClosestNeighbours(Point2D.Double[] p,
int nPoints)
Find the two closest points. |
private void |
findPointFreeCircumcircle(Triangulation tri,
Point2D.Double[] p)
Find point free circumcircle to the left. |
void |
reset()
WRITEME: Document this method brpocock@star-hope.org |
void |
triangulate(Triangulation tri)
WRITEME: Document this method brpocock@star-hope.org |
Methods inherited from class org.starhope.appius.physica.TriangulationAlgorithm |
---|
nextStep, setAlgorithmState |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final String cubicAlgName
Circle bC
int i
int nFaces
int s
int t
int u
Constructor Detail |
---|
public CubicAlgorithm(Triangulation tri, int nPoints)
tri
- WRITEMEnPoints
- WRITEMEMethod Detail |
---|
private void addOrUpdateTriangle(int eI, Triangulation tri, int numFaces)
eI
- WRITEMEtri
- WRITEMEnumFaces
- WRITEMEpublic void completeFacet(int eI, Triangulation tri, int numFaces)
eI
- WRITEMEtri
- WRITEMEnumFaces
- WRITEMEpublic Point2D findClosestNeighbours(Point2D.Double[] p, int nPoints)
p
- WRITEMEnPoints
- WRITEME
private void findPointFreeCircumcircle(Triangulation tri, Point2D.Double[] p)
tri
- WRITEMEp
- WRITEMEpublic void reset()
TriangulationAlgorithm
reset
in class TriangulationAlgorithm
TriangulationAlgorithm.reset()
public void triangulate(Triangulation tri)
TriangulationAlgorithm
triangulate
in class TriangulationAlgorithm
tri
- WRITEMETriangulationAlgorithm.triangulate(org.starhope.appius.physica.Triangulation)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |