[
https://issues.apache.org/jira/browse/GEOMETRY-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16889484#comment-16889484
]
Matt Juntunen commented on GEOMETRY-59:
---------------------------------------
bq. When the facet is concave there isn't a definite "correct" orientation for
the underlying plane.
Oops. I take that back. The "correct" orientation is the one where the vertices
are wound in an overall counter-clockwise direction. We might be able to get
this to work with the following:
1. Create the plane for the facet using the first 3 vertices (as before).
2. Project the vertices onto the plane (as before).
3. Compute the sum of the interior angles of the projected facet.
4. If the sum is positive, then the plane is properly oriented. If not, reverse
the orientation of the plane.
> unexpected output from PolyhedronsSet::checkPoint
> -------------------------------------------------
>
> Key: GEOMETRY-59
> URL: https://issues.apache.org/jira/browse/GEOMETRY-59
> Project: Apache Commons Geometry
> Issue Type: Bug
> Components: Euclidean 3D
> Reporter: Dirk Bonekämper
> Priority: Major
> Attachments: InsideProblemTest.java
>
>
> In my project I'm working with 3D Regions modeled as prisms. The base
> polygons are mostly concave. I got wrong results and boiled it down to the
> attached unit test. It creates a prism with a concave base. A point that is
> above the prism gets classified as INSIDE.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)