|
||||||||
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 | |
---|---|
IColor |
clr
|
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()
|
IVec |
center()
|
IColor |
clr()
|
IFace |
clr(java.awt.Color c)
|
IFace |
clr(java.awt.Color c,
double alpha)
|
IFace |
clr(java.awt.Color c,
float alpha)
|
IFace |
clr(java.awt.Color c,
int alpha)
|
IFace |
clr(double dgray)
|
IFace |
clr(double dgray,
double dalpha)
|
IFace |
clr(double dr,
double dg,
double db)
|
IFace |
clr(double dr,
double dg,
double db,
double da)
|
IFace |
clr(float fgray)
|
IFace |
clr(float fgray,
float falpha)
|
IFace |
clr(float fr,
float fg,
float fb)
|
IFace |
clr(float fr,
float fg,
float fb,
float fa)
|
IFace |
clr(IColor c)
|
IFace |
clr(IColor c,
double alpha)
to set color, with alpha value overwritten |
IFace |
clr(IColor c,
float alpha)
to set color, with alpha value overwritten |
IFace |
clr(IColor c,
int alpha)
to set color, with alpha value overwritten |
IFace |
clr(int gray)
|
IFace |
clr(int gray,
int alpha)
|
IFace |
clr(int r,
int g,
int b)
|
IFace |
clr(int r,
int g,
int b,
int a)
|
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()
alias of center |
IColor |
getColor()
|
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)
|
IFace |
hsb(double dh,
double ds,
double db)
|
IFace |
hsb(double dh,
double ds,
double db,
double da)
|
IFace |
hsb(float h,
float s,
float b)
|
IFace |
hsb(float h,
float s,
float b,
float a)
|
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
public IColor clr
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 center()
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)
public IColor clr()
public IFace clr(IColor c)
public IFace clr(IColor c, int alpha)
public IFace clr(IColor c, float alpha)
public IFace clr(IColor c, double alpha)
public IFace clr(java.awt.Color c)
public IFace clr(java.awt.Color c, int alpha)
public IFace clr(java.awt.Color c, float alpha)
public IFace clr(java.awt.Color c, double alpha)
public IColor getColor()
public IFace clr(int gray)
public IFace clr(double dgray)
public IFace clr(float fgray)
public IFace clr(int gray, int alpha)
public IFace clr(double dgray, double dalpha)
public IFace clr(float fgray, float falpha)
public IFace clr(int r, int g, int b)
public IFace clr(double dr, double dg, double db)
public IFace clr(float fr, float fg, float fb)
public IFace clr(int r, int g, int b, int a)
public IFace clr(double dr, double dg, double db, double da)
public IFace clr(float fr, float fg, float fb, float fa)
public IFace hsb(double dh, double ds, double db, double da)
public IFace hsb(float h, float s, float b, float a)
public IFace hsb(double dh, double ds, double db)
public IFace hsb(float h, float s, float b)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |