New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException in unbounded polygons set #23

maisonobe opened this Issue Aug 10, 2017 · 0 comments


None yet
1 participant
Copy link

maisonobe commented Aug 10, 2017

The following test triggers a NullPointerException:

public void testInfiniteQuadrant() {
    final double tolerance = 1.0e-10;
    BSPTree<Euclidean2D> bsp = new BSPTree<>();
    bsp.insertCut(new Line(Vector2D.ZERO, 0.0, tolerance));
    bsp.getMinus().insertCut(new Line(Vector2D.ZERO, 0.5 * FastMath.PI, tolerance));
    PolygonsSet polygons = new PolygonsSet(bsp, tolerance);
    Assert.assertEquals(Double.POSITIVE_INFINITY, polygons.getSize(), 1.0e-10);

@maisonobe maisonobe self-assigned this Aug 10, 2017

@maisonobe maisonobe closed this in 605ee52 Aug 10, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment