igeo
Class IEdge
java.lang.Object
igeo.IEdge
public class IEdge
- extends java.lang.Object
Class of an edge of polygon mesh.
- Version:
- 0.7.0.0;
- 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)
dup
public IEdge dup()
del
public void del()
nrml
public IVec nrml(double param)
normal
public IVec normal(double param)
nrml
public IVec nrml()
normal
public IVec normal()
getPointOnEdge
public IVec getPointOnEdge(double ratio)
contains
public boolean contains(IVertex v)
replaceVertex
public void replaceVertex(IVertex oldVertex,
IVertex newVertex)
getOtherVertex
public IVertex getOtherVertex(IVertex v)
getOtherVertex
public IVertex getOtherVertex(IEdge edge)
getSharingVertex
public IVertex getSharingVertex(IEdge edge)
isSharingVertex
public boolean isSharingVertex(IEdge edge)
getOtherFace
public IFace getOtherFace(IFace f)
getOtherFaces
public java.util.ArrayList 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)
createFace
public IFace[] createFace(IMeshCreator creator)
subdivide
public IVertex[] subdivide(int divnum,
java.util.ArrayList<IVertex> newVertexArray,
java.util.ArrayList<IEdge> newEdgeArray)