Class ModelSurfaceTopology.Triangle

  • Enclosing class:
    ModelSurfaceTopology

    public class ModelSurfaceTopology.Triangle
    extends java.lang.Object
    A representation of a triangle for the vertex-edge-triangle table. This class stores the triple of vertex indices for the vertices of the triangle. The triangles and are considered to be distinct triangles. The class extends Object to obtain support for hashing into a map of triangles.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int m_iV0
      DOCUMENT ME!
      int m_iV1
      DOCUMENT ME!
      int m_iV2
      DOCUMENT ME!
    • Constructor Summary

      Constructors 
      Constructor Description
      Triangle​(int iV0, int iV1, int iV2)
      Constructs a triangle in the table.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object kObject)
      Support for hashing into a map of triangles.
      int hashCode()
      Support for hashing into a map of triangles.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • m_iV0

        public int m_iV0
        DOCUMENT ME!
      • m_iV1

        public int m_iV1
        DOCUMENT ME!
      • m_iV2

        public int m_iV2
        DOCUMENT ME!
    • Constructor Detail

      • Triangle

        public Triangle​(int iV0,
                        int iV1,
                        int iV2)
        Constructs a triangle in the table.
        Parameters:
        iV0 - a vertex index for a triangle vertex
        iV1 - a vertex index for a triangle vertex
        iV2 - a vertex index for a triangle vertex
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object kObject)
        Support for hashing into a map of triangles.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        kObject - a triangle for comparison to the current one
        Returns:
        true iff the triangles are identical
      • hashCode

        public int hashCode()
        Support for hashing into a map of triangles.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash key for the triangle