Class ModelSurfaceTopology.Vertex

  • Enclosing class:
    ModelSurfaceTopology

    public class ModelSurfaceTopology.Vertex
    extends java.lang.Object
    A representation of a vertex for the vertex-edge-triangle table. This class just stores the index of the vertex but is unconcerned about the actually vertex 3D coordinate. The class extends Object to obtain support for hashing into a map of vertices.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int m_iV
      DOCUMENT ME!
    • Constructor Summary

      Constructors 
      Constructor Description
      Vertex​(int iV)
      Constructs a vertex 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 vertices.
      int hashCode()
      Support for hashing into a map of vertices.
      • Methods inherited from class java.lang.Object

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

      • m_iV

        public int m_iV
        DOCUMENT ME!
    • Constructor Detail

      • Vertex

        public Vertex​(int iV)
        Constructs a vertex in the table.
        Parameters:
        iV - the index of the vertex
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object kObject)
        Support for hashing into a map of vertices.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        kObject - a vertex for comparison to the current one
        Returns:
        true iff the vertices have the same index
      • hashCode

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