Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1060

MathInternalError when calculating barycenter of PolyhedronsSet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 3.2
    • 3.3
    • None
    • None
    • Ubuntu, Java 1.7.0

    Description

      I'm not sure if I could replicate this well enough to be useful - I am trying to construct a PolyhedronsSet from a collection of Planes using RegionFactory.buildConvex(). The input planes are created from running QHull - I don't have the actual normals but I can add them to this report if I run into this again.

      Exception in thread "KQML-Dispatcher-1" org.apache.commons.math3.exception.MathInternalError: illegal state: internal error, please fill a bug report at https://issues.apache.org/jira/browse/MATH
      at org.apache.commons.math3.geometry.euclidean.twod.PolygonsSet.followLoop(PolygonsSet.java:736)
      at org.apache.commons.math3.geometry.euclidean.twod.PolygonsSet.getVertices(PolygonsSet.java:613)
      at org.apache.commons.math3.geometry.euclidean.twod.PolygonsSet.computeGeometricalProperties(PolygonsSet.java:523)
      at org.apache.commons.math3.geometry.partitioning.AbstractRegion.getSize(AbstractRegion.java:413)
      at org.apache.commons.math3.geometry.euclidean.threed.PolyhedronsSet$FacetsContributionVisitor.addContribution(PolyhedronsSet.java:188)
      at org.apache.commons.math3.geometry.euclidean.threed.PolyhedronsSet$FacetsContributionVisitor.visitInternalNode(PolyhedronsSet.java:170)
      at org.apache.commons.math3.geometry.partitioning.BSPTree.visit(BSPTree.java:263)
      at org.apache.commons.math3.geometry.partitioning.BSPTree.visit(BSPTree.java:262)
      at org.apache.commons.math3.geometry.partitioning.BSPTree.visit(BSPTree.java:262)
      at org.apache.commons.math3.geometry.euclidean.threed.PolyhedronsSet.computeGeometricalProperties(PolyhedronsSet.java:135)
      at org.apache.commons.math3.geometry.partitioning.AbstractRegion.getBarycenter(AbstractRegion.java:428)

      Attachments

        Activity

          People

            Unassigned Unassigned
            iperera Ian Perera
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: