Uploaded image for project: 'Apache Commons Geometry'
  1. Apache Commons Geometry
  2. GEOMETRY-58

WelzlEncloser throws GeometryInternalError

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0
    • Component/s: Euclidean 2D
    • Labels:
      None

      Description

      The following code snippet throws a GeometryInternalError exception:

      @Test
      public void testEnclosingWithPrecision() {
          final List<Vector2D> points = Arrays.asList(
                  Vector2D.of(271.59, 57.282),
                  Vector2D.of(269.145, 57.063),
                  Vector2D.of(309.117, 77.187),
                  Vector2D.of(316.989, 34.835),
                  Vector2D.of(323.101, 53.972)
          );
          double precision = 1;
          DoublePrecisionContext precisionContext = new EpsilonDoublePrecisionContext(precision);
          WelzlEncloser< Vector2D> encloser = new WelzlEncloser<>(precisionContext, new DiskGenerator());
          encloser.enclose(points);
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                BenjaminKrogh Benjamin Krogh
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: