Class ExtractSurfaceTetra.Vertex

  • Enclosing class:
    ExtractSurfaceTetra

    protected class ExtractSurfaceTetra.Vertex
    extends java.lang.Object
    A rational representation of a level set vertex. The rational form allows for exact look-ups in a hash map of vertices. The class extends Object for hashing support.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int m_iXDenom
      Vertices are stored as rational numbers (xn/xd,yn/yd,zn/zd).
      int m_iXNumer
      Vertices are stored as rational numbers (xn/xd,yn/yd,zn/zd).
      int m_iYDenom
      Y rational
      int m_iYNumer
      Y rational
      int m_iZDenom
      Z rational
      int m_iZNumer
      Z rational
    • Constructor Summary

      Constructors 
      Constructor Description
      Vertex()
      Create a vertex (invalid one since the denominators are zero).
      Vertex​(int iXNumer, int iXDenom, int iYNumer, int iYDenom, int iZNumer, int iZDenom)
      Create a vertex.
    • 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_iXNumer

        public int m_iXNumer
        Vertices are stored as rational numbers (xn/xd,yn/yd,zn/zd). This supports removing redundant vertices that occur because of extraction in adjacent voxels.
      • m_iXDenom

        public int m_iXDenom
        Vertices are stored as rational numbers (xn/xd,yn/yd,zn/zd). This supports removing redundant vertices that occur because of extraction in adjacent voxels.
      • m_iYNumer

        public int m_iYNumer
        Y rational
      • m_iYDenom

        public int m_iYDenom
        Y rational
      • m_iZNumer

        public int m_iZNumer
        Z rational
      • m_iZDenom

        public int m_iZDenom
        Z rational
    • Constructor Detail

      • Vertex

        public Vertex()
        Create a vertex (invalid one since the denominators are zero).
      • Vertex

        public Vertex​(int iXNumer,
                      int iXDenom,
                      int iYNumer,
                      int iYDenom,
                      int iZNumer,
                      int iZDenom)
        Create a vertex.
        Parameters:
        iXNumer - a vertex in rational form
        iXDenom - X
        iYNumer - Y
        iYDenom - Y
        iZNumer - Z
        iZDenom - Z
    • 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 are identical
      • 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