|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectigeo.IFace
public class IFace
Class of a face of polygon mesh.
Field Summary | |
---|---|
boolean |
deleted
used in deleting process |
IEdge[] |
edges
|
IVec |
normal
|
IVertex[] |
vertices
|
Constructor Summary | |
---|---|
IFace(IEdge[] e)
|
|
IFace(IEdge e1,
IEdge e2,
IEdge e3)
|
|
IFace(IEdge e1,
IEdge e2,
IEdge e3,
IEdge e4)
|
|
IFace(IFace f)
Copis a face but shareing same vertices and edges with the original |
|
IFace(IVertex[] v)
|
|
IFace(IVertex v1,
IVertex v2,
IVertex v3)
|
|
IFace(IVertex v1,
IVertex v2,
IVertex v3,
IVertex v4)
|
Method Summary | |
---|---|
double |
area()
|
void |
calcNormal()
|
boolean |
contains(IEdge e)
checks if the edge is inside face's edges array |
boolean |
contains(IVertex v)
|
void |
del()
|
double |
dist(IVecI pt)
calculate closest distance to face taking normal into consideration. |
IFace |
dup()
|
IEdge |
edge(int i)
|
int |
edgeNum()
|
static boolean |
eq(double v1,
double v2)
|
boolean |
eq(IFace face)
|
void |
flipNormal()
|
IVertex[] |
getAdjacentVertices(IVertex v1,
IVertex v2)
|
IVec |
getAverageNormal()
average normal |
IVec[] |
getBoundary()
|
IVec |
getCenter()
|
IEdge |
getEdge(int i)
|
IEdge |
getEdge(IVertex v1,
IVertex v2)
|
IEdge |
getOtherEdge(IEdge e)
|
IEdge |
getOtherEdge(IVertex v)
|
IEdge[] |
getOtherEdges(IEdge e)
|
IEdge[] |
getOtherEdges(IVertex v)
|
IEdge[] |
getOtherEdges(IVertex v1,
IVertex v2,
IVertex... otherVtx)
returns edges which aren't a link between any two of given vertex variable vtx. |
IVertex |
getOtherVertex(IEdge e)
|
IVertex |
getOtherVertex(IVertex v1,
IVertex v2)
|
IVertex[] |
getOtherVertices(IVertex v)
|
IEdge |
getSharedEdge(IFace f)
|
IVertex[] |
getSharedVertices(IFace f)
|
IVertex |
getVertex(int i)
|
int |
indexOf(IEdge e)
|
void |
init(IEdge[] e)
|
boolean |
loopDir(IEdge edge)
direction of edge based on the sequence of vertices array inside a face |
IVec |
nml()
returns normal. |
IVec |
normal()
alias of nml() |
boolean |
onFace(IEdge e)
checks if the edge is located on the edge of the face even if it's not inside face's edges array |
void |
replaceEdge(IEdge oldEdge,
IEdge newEdge)
|
void |
replaceVertex(IVertex oldVertex,
IVertex newVertex)
|
boolean |
sameLoopDir(IEdge e1,
IEdge e2)
|
void |
setNormal(IVec n)
|
java.util.ArrayList<java.lang.Object> |
triangulate(boolean triangulateDirection,
IMeshType creator)
|
java.util.ArrayList<java.lang.Object> |
triangulateAtCenter(IMeshType creator)
|
IVertex |
vertex(int i)
|
int |
vertexNum()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public IVertex[] vertices
public IEdge[] edges
public IVec normal
public boolean deleted
Constructor Detail |
---|
public IFace(IEdge[] e)
public IFace(IEdge e1, IEdge e2, IEdge e3)
public IFace(IEdge e1, IEdge e2, IEdge e3, IEdge e4)
public IFace(IVertex[] v)
public IFace(IVertex v1, IVertex v2, IVertex v3)
public IFace(IVertex v1, IVertex v2, IVertex v3, IVertex v4)
public IFace(IFace f)
Method Detail |
---|
public void init(IEdge[] e)
public IFace dup()
public IVertex getVertex(int i)
public IVertex vertex(int i)
public IEdge getEdge(int i)
public IEdge edge(int i)
public int vertexNum()
public int edgeNum()
public IEdge getEdge(IVertex v1, IVertex v2)
public IEdge[] getOtherEdges(IVertex v1, IVertex v2, IVertex... otherVtx)
public IEdge[] getOtherEdges(IVertex v)
public IEdge getOtherEdge(IVertex v)
public IEdge[] getOtherEdges(IEdge e)
public IEdge getOtherEdge(IEdge e)
public IVertex getOtherVertex(IVertex v1, IVertex v2)
public IVertex getOtherVertex(IEdge e)
public IVertex[] getOtherVertices(IVertex v)
public IVertex[] getSharedVertices(IFace f)
public IEdge getSharedEdge(IFace f)
public IVertex[] getAdjacentVertices(IVertex v1, IVertex v2)
public boolean loopDir(IEdge edge)
public boolean sameLoopDir(IEdge e1, IEdge e2)
public IVec getCenter()
public void del()
public boolean contains(IVertex v)
public boolean contains(IEdge e)
public boolean onFace(IEdge e)
public int indexOf(IEdge e)
public void replaceVertex(IVertex oldVertex, IVertex newVertex)
public void replaceEdge(IEdge oldEdge, IEdge newEdge)
public double area()
public IVec nml()
public IVec normal()
public IVec getAverageNormal()
public void calcNormal()
public void setNormal(IVec n)
public void flipNormal()
public java.util.ArrayList<java.lang.Object> triangulate(boolean triangulateDirection, IMeshType creator)
public java.util.ArrayList<java.lang.Object> triangulateAtCenter(IMeshType creator)
public static boolean eq(double v1, double v2)
public boolean eq(IFace face)
public IVec[] getBoundary()
public double dist(IVecI pt)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |