|
|||||||||
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 | |
---|---|
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)
|
boolean |
contains(IVertex v)
|
void |
del()
|
IFace |
dup()
|
IEdge |
edge(int i)
|
int |
edgeNum()
|
static boolean |
eq(double v1,
double v2)
|
boolean |
eq(IFace face)
|
void |
flipNormal()
|
IVec |
getAverageNormal()
average normal |
IVec[] |
getBoundary()
|
IVec |
getCenter()
|
IEdge |
getEdge(int i)
|
IEdge |
getEdge(IVertex v1,
IVertex v2)
|
IVertex |
getOtherVertex(IVertex v1,
IVertex v2)
|
IVertex |
getVertex(int i)
|
int |
indexOf(IEdge e)
|
void |
init(IEdge[] e)
|
IVec |
nml()
returns normal. |
IVec |
normal()
alias of nml() |
void |
replaceVertex(IVertex oldVertex,
IVertex newVertex)
|
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
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 IVertex getOtherVertex(IVertex v1, IVertex v2)
public IVec getCenter()
public void del()
public boolean contains(IVertex v)
public boolean contains(IEdge e)
public int indexOf(IEdge e)
public void replaceVertex(IVertex oldVertex, IVertex newVertex)
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |