[ 
https://issues.apache.org/jira/browse/GEOMETRY-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gilles updated GEOMETRY-58:
---------------------------
    Description: 
The following code snippet throws a GeometryInternalError exception:
{noformat}
@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);
}{noformat}

  was:
The following code snippet throws a MathInternalError exception:
{noformat}
@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);
}{noformat}


> WelzlEncloser throws MathInternalError
> --------------------------------------
>
>                 Key: GEOMETRY-58
>                 URL: https://issues.apache.org/jira/browse/GEOMETRY-58
>             Project: Apache Commons Geometry
>          Issue Type: Bug
>          Components: Euclidean 2D
>            Reporter: Benjamin Krogh
>            Priority: Critical
>
> The following code snippet throws a GeometryInternalError exception:
> {noformat}
> @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);
> }{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to