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

WelzlEncloser throws GeometryInternalError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 1.0
    • euclidean2D
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: