Class ModelSurfaceTopology.Statistics

  • Enclosing class:
    ModelSurfaceTopology

    public static class ModelSurfaceTopology.Statistics
    extends java.lang.Object
    For debugging and testing. A simple class for storing information about the mesh including the number of vertices in the mesh, the number of edges in the mesh, number of triangles in the mesh, the average number of edges per vertex, the average number of triangles per vertex, the average number of triangles per edge, the maximum number of edges for a vertex, the maximum number of triangles for a vertex, and the maximum number of triangles for an edge.
    • Field Detail

      • m_fAverageEdgesPerVertex

        public float m_fAverageEdgesPerVertex
        self-explanatory statistics.
      • m_fAverageTrianglesPerEdge

        public float m_fAverageTrianglesPerEdge
        DOCUMENT ME!
      • m_fAverageTrianglesPerVertex

        public float m_fAverageTrianglesPerVertex
        DOCUMENT ME!
      • m_iEQuantity

        public int m_iEQuantity
        DOCUMENT ME!
      • m_iMaximumEdgesPerVertex

        public int m_iMaximumEdgesPerVertex
        DOCUMENT ME!
      • m_iMaximumTrianglesPerEdge

        public int m_iMaximumTrianglesPerEdge
        DOCUMENT ME!
      • m_iMaximumTrianglesPerVertex

        public int m_iMaximumTrianglesPerVertex
        DOCUMENT ME!
      • m_iTQuantity

        public int m_iTQuantity
        DOCUMENT ME!
      • m_iVQuantity

        public int m_iVQuantity
        number of vertices, edge, and triangles in the mesh.
    • Constructor Detail

      • Statistics

        public Statistics​(ModelSurfaceTopology kTopo)
        The constructor and only member function for the class. The statistics gathering is all done by the constructor.
        Parameters:
        kTopo - the mesh topology object whose statistics need to be calculated
    • Method Detail

      • print

        public void print()
        Print the statistics information to System.out.