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

    Fields
    Modifier and Type Field Description
    int node1  
    int node2  
    int tri1  
    int tri2  
  • Constructor Summary

    Constructors
    Constructor Description
    MeshEdge​(int t1, int t2, int n1, int n2)  
  • Method Summary

    Modifier and Type Method Description
    void addNode​(int n)  
    void addTri​(int i)  
    boolean hasOppositeTri()  

    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)