igeo
Class IEdge
java.lang.Object
igeo.IEdge
public class IEdge
- extends java.lang.Object
Class of an edge of polygon mesh.
- Author:
- Satoru Sugihara
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
vertices
public IVertex[] vertices
faces
public java.util.ArrayList<IFace> faces
IEdge
public IEdge(IVertex v1,
IVertex v2)
IEdge
public IEdge(IEdge e)
getVertex
public IVertex getVertex(int i)
vertex
public IVertex vertex(int i)
vertexNum
public int vertexNum()
addFace
public void addFace(IFace f)
getFace
public IFace getFace(int i)
face
public IFace face(int i)
faceNum
public int faceNum()
dup
public IEdge dup()
del
public void del()
nml
public IVec nml(double param)
normal
public IVec normal(double param)
nml
public IVec nml()
normal
public IVec normal()
getPointOnEdge
public IVec getPointOnEdge(double ratio)
pos
public IVec pos(double ratio)
mid
public IVec mid()
center
public IVec center()
- alias of mid
contains
public boolean contains(IVertex v)
contains
public boolean contains(IVertex v1,
IVertex v2)
replaceVertex
public void replaceVertex(IVertex oldVertex,
IVertex newVertex)
getOtherVertex
public IVertex getOtherVertex(IVertex v)
getOtherVertex
public IVertex getOtherVertex(IEdge edge)
getSharedVertex
public IVertex getSharedVertex(IEdge edge)
sharedFace
public IFace sharedFace(IEdge edge)
getOverlappingEdge
public IEdge getOverlappingEdge()
- edge sharing exact same pair of vertices
getOverlappingEdges
public IEdge[] getOverlappingEdges()
- edge sharing exact same pair of vertices
hasSharedVertex
public boolean hasSharedVertex(IEdge edge)
isConnected
public boolean isConnected(IEdge edge)
getOtherFace
public IFace getOtherFace(IFace f)
getOtherFaces
public IFace[] getOtherFaces(IFace f)
isOnEdge
public boolean isOnEdge(IVertex v)
traceEdge
public java.util.ArrayList<java.util.ArrayList<IEdge>> traceEdge(int maxVertexNum)
traceEdge
public void traceEdge(java.util.ArrayList<IEdge> trace,
java.util.ArrayList<java.util.ArrayList<IEdge>> loops,
int depth)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
eq
public boolean eq(IEdge e)
eq
public boolean eq(IEdge e,
double tolerance)
createFace
public IFace[] createFace(IMeshType creator)
subdivide
public IVertex[] subdivide(int divnum,
java.util.ArrayList<IVertex> newVertexArray,
java.util.ArrayList<IEdge> newEdgeArray)