Package mgui.geometry.mesh
Class MeshEdge
java.lang.Object
mgui.geometry.mesh.MeshEdge
public class MeshEdge
extends java.lang.Object
Represents an edge in a mesh as a reference to its one or two adjacent triangular faces.
An edge with one triangle is a boundary edge.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MeshEdge(int t1, int t2, int n1, int n2) -
Method Summary
Modifier and Type Method Description voidaddNode(int n)voidaddTri(int i)booleanhasOppositeTri()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
tri1
public int tri1 -
tri2
public int tri2 -
node1
public int node1 -
node2
public int node2
-
-
Constructor Details
-
MeshEdge
public MeshEdge(int t1, int t2, int n1, int n2)
-
-
Method Details
-
hasOppositeTri
public boolean hasOppositeTri() -
addTri
public void addTri(int i) -
addNode
public void addNode(int n)
-