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/11/25 12:49:00 UTC

[jira] [Closed] (GEOMETRY-33) Region API

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

Matt Juntunen closed GEOMETRY-33.
---------------------------------
    Resolution: Done

> Region API
> ----------
>
>                 Key: GEOMETRY-33
>                 URL: https://issues.apache.org/jira/browse/GEOMETRY-33
>             Project: Apache Commons Geometry
>          Issue Type: Improvement
>            Reporter: Matt Juntunen
>            Priority: Major
>
> The following updates should be made to the overall {{Region}} API:
> - Rename {{IntervalsSet}}, {{PolygonsSet}}, and {{PolyhedronsSet}} to {{Region1D}}, {{Region2D}}, and {{Region3D}}, the reason being that each class can represent the full space, which is decidedly not an interval, polygon, or polyhedron. Also, the term "set", implies that they are collections of objects, which is not the case.
> - Create builder APIs for constructing regions in each dimension. Ex:
> {code:java}
> Region3D region = Region3D.builder()
>     .add(plane1)
>     .add(plane2)
>     .build();
> {code}
> - Absorb {{RegionFactory}} functionality into the {{Region}} interface or make the utility methods static.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)