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 2018/02/02 04:10:01 UTC

[jira] [Updated] (MATH-1447) PolygonsSet does not handle intersecting infinite lines

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

Matt Juntunen updated MATH-1447:
--------------------------------
    Description: 
When created from boundaries consisting of two intersecting infinite lines, PolygonsSet.getVertices() throws an IndexOutOfBoundsException.

{{Ex:}}
 {{Line line1 = new Line(new Cartesian2D(0, 0), new Cartesian2D(1, 1), 1e-10);}}
 {{Line line2 = new Line(new Cartesian2D(1, -1), new Cartesian2D(0, 0), 1e--10);}}

{{List<SubHyperplane<Euclidean2D>> boundaries = new ArrayList<>();}}
 {{boundaries.add(line1.wholeHyperplane());}}
 {{boundaries.add(line2.wholeHyperplane());}}

{{PolygonsSet poly = new PolygonsSet(boundaries, 1e-10);}}

{{poly.getVertices(); // throws exception}}

 

Pull request: https://github.com/apache/commons-math/pull/78

  was:
When created from boundaries consisting of two intersecting infinite lines, PolygonsSet.getVertices() throws an IndexOutOfBoundsException.

{{Ex:}}
{{Line line1 = new Line(new Cartesian2D(0, 0), new Cartesian2D(1, 1), 1e-10);}}
{{Line line2 = new Line(new Cartesian2D(1, -1), new Cartesian2D(0, 0), 1e--10);}}

{{List<SubHyperplane<Euclidean2D>> boundaries = new ArrayList<>();}}
{{boundaries.add(line1.wholeHyperplane());}}
{{boundaries.add(line2.wholeHyperplane());}}

{{PolygonsSet poly = new PolygonsSet(boundaries, 1e-10);}}

{{poly.getVertices(); // throws exception}}


> PolygonsSet does not handle intersecting infinite lines
> -------------------------------------------------------
>
>                 Key: MATH-1447
>                 URL: https://issues.apache.org/jira/browse/MATH-1447
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 4.0, 3.5, 3.6
>            Reporter: Matt Juntunen
>            Priority: Major
>             Fix For: 4.0
>
>
> When created from boundaries consisting of two intersecting infinite lines, PolygonsSet.getVertices() throws an IndexOutOfBoundsException.
> {{Ex:}}
>  {{Line line1 = new Line(new Cartesian2D(0, 0), new Cartesian2D(1, 1), 1e-10);}}
>  {{Line line2 = new Line(new Cartesian2D(1, -1), new Cartesian2D(0, 0), 1e--10);}}
> {{List<SubHyperplane<Euclidean2D>> boundaries = new ArrayList<>();}}
>  {{boundaries.add(line1.wholeHyperplane());}}
>  {{boundaries.add(line2.wholeHyperplane());}}
> {{PolygonsSet poly = new PolygonsSet(boundaries, 1e-10);}}
> {{poly.getVertices(); // throws exception}}
>  
> Pull request: https://github.com/apache/commons-math/pull/78



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