public class TriangulationFace
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
alive |
protected Circle |
circumCircle |
protected java.lang.Double |
circumRadius |
protected TriangulationVertex[] |
corners |
protected java.lang.Integer |
count |
protected int |
delCount |
boolean |
displayed |
protected Shape[] |
edgeShape |
protected Triangle |
groundTriangle |
protected int |
id |
protected Triangle |
liftedTriangle |
protected TriangulationFace[] |
neighbors |
protected Line |
oppLine |
protected Plane |
plane |
protected java.lang.Integer |
rotCount |
protected boolean |
shorty |
protected Shape[] |
triangleShape |
protected int |
uIndx |
Constructor and Description |
---|
TriangulationFace(TriangulationVertex v0,
TriangulationVertex v1,
TriangulationVertex v2) |
TriangulationFace(TriangulationVertex v0,
TriangulationVertex v1,
TriangulationVertex v2,
J2DScene scene,
boolean testing) |
Modifier and Type | Method and Description |
---|---|
boolean |
circumCircleContains(java.util.List<TriangulationVertex> vertices,
double eps) |
void |
draw(J2DScene scene) |
void |
draw(J2DScene scene,
boolean testing) |
void |
draw(J2DScene scene,
java.awt.Color clr) |
void |
draw(J2DScene scene,
java.awt.Color clr,
double offset) |
void |
draw(J2DScene scene,
double alpha,
boolean testing) |
Shape |
drawCircumCircle(J2DScene scene,
java.awt.Color clr) |
Shape |
drawRotatedCircumCircle(J2DScene scene,
java.awt.Color clr,
double angle,
java.util.List<java.lang.Integer> rotIndx) |
Circle |
getCircumCircle()
returns the circumcircle of the face.
|
java.lang.Double |
getCircumRadius()
returns the radius of the circumcircle of the face.
|
TriangulationVertex |
getCorner(int i) |
TriangulationVertex[] |
getCorners() |
int |
getCount()
returns the bit info about rotating vertices of this face - as a number between 0 and 7
|
Shape |
getEdgeShape(int i) |
int |
getId() |
int |
getIndex(TriangulationFace t)
returns the index of the specified neighbor face
|
int |
getIndex(TriangulationVertex v)
returns the index of the specified vertex in the face
|
TriangulationFace |
getNeighbor(int i) |
TriangulationFace |
getOppFace(TriangulationVertex v)
returns the face opposite the vertex v in this face, null if such face does not exist
|
Line |
getOppLine(TriangulationVertex v) |
TriangulationVertex |
getThirdVertex(TriangulationFace face)
returns vertex of the face not in this.face
|
TriangulationVertex |
getThirdVertex(TriangulationVertex u,
TriangulationVertex v)
returns third vertex of the face
|
Triangle |
getTriangle() |
boolean |
hasLowestRotIndex(TriangulationVertex v,
java.util.List<java.lang.Integer> rotIndx,
int size) |
boolean |
hasRotatingCorners(java.util.List<java.lang.Integer> rotIndx) |
boolean |
hasShape() |
boolean |
hasVertex(TriangulationVertex v)
returns TRUE if the face has vertex v as one of its corners
|
void |
hide(J2DScene scene) |
void |
hideCircumCircle(J2DScene scene) |
boolean |
isAlive() |
boolean |
isBigFace() |
boolean |
isFlat() |
boolean |
isShort() |
void |
killShapes(J2DScene scene) |
int |
nrRotatingCorners() |
void |
redraw(J2DScene scene) |
void |
redraw(J2DScene scene,
boolean testing) |
void |
redraw(J2DScene scene,
java.awt.Color clr) |
void |
reshape(J2DScene scene,
boolean testing) |
void |
setAlive(boolean alive) |
void |
setCircumCircle() |
void |
setCircumCircle(Circle c) |
void |
setCircumCircleCenterX(double x) |
void |
setCircumCircleCenterY(double y) |
void |
setCircumCircleRadius() |
void |
setCircumCircleRadius(java.lang.Double r) |
void |
setEdgeShape(int i,
Shape shape) |
void |
setId(int id) |
void |
setNeighbor(int indx,
TriangulationFace face) |
void |
setShort(boolean shorty) |
java.lang.String |
toString() |
protected int id
protected TriangulationVertex[] corners
protected TriangulationFace[] neighbors
protected boolean shorty
protected Shape[] edgeShape
protected Shape[] triangleShape
protected Circle circumCircle
protected java.lang.Double circumRadius
public boolean displayed
protected Line oppLine
protected boolean alive
protected java.lang.Integer count
protected java.lang.Integer rotCount
protected Triangle liftedTriangle
protected Triangle groundTriangle
protected Plane plane
protected int delCount
protected int uIndx
public TriangulationFace(TriangulationVertex v0, TriangulationVertex v1, TriangulationVertex v2)
public TriangulationFace(TriangulationVertex v0, TriangulationVertex v1, TriangulationVertex v2, J2DScene scene, boolean testing)
public void killShapes(J2DScene scene)
public TriangulationVertex getCorner(int i)
public TriangulationFace getNeighbor(int i)
public boolean isShort()
public void setShort(boolean shorty)
public Shape getEdgeShape(int i)
public void setEdgeShape(int i, Shape shape)
public void setCircumCircle()
public void setCircumCircle(Circle c)
public void setCircumCircleCenterX(double x)
public void setCircumCircleCenterY(double y)
public void setCircumCircleRadius(java.lang.Double r)
public void setCircumCircleRadius()
public boolean isAlive()
public boolean hasShape()
public int getCount()
public int getId()
public void setId(int id)
public void setNeighbor(int indx, TriangulationFace face)
public void setAlive(boolean alive)
public boolean isBigFace()
public boolean isFlat()
public boolean hasLowestRotIndex(TriangulationVertex v, java.util.List<java.lang.Integer> rotIndx, int size)
public int nrRotatingCorners()
public boolean hasRotatingCorners(java.util.List<java.lang.Integer> rotIndx)
public boolean circumCircleContains(java.util.List<TriangulationVertex> vertices, double eps)
public Triangle getTriangle()
public Circle getCircumCircle()
public java.lang.Double getCircumRadius()
public Line getOppLine(TriangulationVertex v)
public TriangulationFace getOppFace(TriangulationVertex v)
public boolean hasVertex(TriangulationVertex v)
public int getIndex(TriangulationVertex v)
public int getIndex(TriangulationFace t)
public TriangulationVertex getThirdVertex(TriangulationVertex u, TriangulationVertex v)
public TriangulationVertex getThirdVertex(TriangulationFace face)
public void draw(J2DScene scene, java.awt.Color clr, double offset)
public void draw(J2DScene scene, java.awt.Color clr)
public void draw(J2DScene scene)
public void draw(J2DScene scene, boolean testing)
public void draw(J2DScene scene, double alpha, boolean testing)
public void redraw(J2DScene scene, java.awt.Color clr)
public void redraw(J2DScene scene)
public void redraw(J2DScene scene, boolean testing)
public Shape drawRotatedCircumCircle(J2DScene scene, java.awt.Color clr, double angle, java.util.List<java.lang.Integer> rotIndx)
public void hide(J2DScene scene)
public void hideCircumCircle(J2DScene scene)
public void reshape(J2DScene scene, boolean testing)
public java.lang.String toString()
toString
in class java.lang.Object
public TriangulationVertex[] getCorners()