You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Neidhart (Commented) (JIRA)" <ji...@apache.org> on 2012/01/24 12:50:41 UTC
[jira] [Commented] (MATH-668) Polygon difference function produces
erroneous results with certain polygons
[ https://issues.apache.org/jira/browse/MATH-668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13192076#comment-13192076 ]
Thomas Neidhart commented on MATH-668:
--------------------------------------
I have checked the attached test cases:
- circle test: you remove the outer circle from the inner one, resulting in an empty polygon set, which is correct behaviour. If you switch the two circles, the correct result is returned: a PolygonsSet with two loops: the two circles itself.
- testdifference2: the described behaviour is implementation specific due to the way the hyperplane is cut when subtracting the two regions.
> Polygon difference function produces erroneous results with certain polygons
> ----------------------------------------------------------------------------
>
> Key: MATH-668
> URL: https://issues.apache.org/jira/browse/MATH-668
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 3.0
> Reporter: Curtis Jensen
> Assignee: Luc Maisonobe
> Labels: difference, math,, polygon,
> Fix For: 3.0
>
> Attachments: PolygonsSetCircleTest.java, PolygonsSetTest.java
>
> Original Estimate: 168h
> Remaining Estimate: 168h
>
> For some polygons, the difference function produces erroneous results. This appears to happen when one polygon is completely encompassed in another, and the outer has multiple concave sections.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira