You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matt Juntunen (JIRA)" <ji...@apache.org> on 2019/07/09 14:35:00 UTC

[jira] [Commented] (GEOMETRY-58) WelzlEncloser throws GeometryInternalError

    [ https://issues.apache.org/jira/browse/GEOMETRY-58?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16881265#comment-16881265 ] 

Matt Juntunen commented on GEOMETRY-58:
---------------------------------------

Is this ready to close?

> WelzlEncloser throws GeometryInternalError
> ------------------------------------------
>
>                 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)