Gilles,

In regard to the roadmap, there has been steady progress but not much is 
visible yet from the GitHub or JIRA point of view, unfortunately. I'm currently 
working on the final items from the initial roadmap email I sent out, namely 
the ones related to the BSP tree and Region API cleanup (GEOMETRY-32, 
GEOMETRY-33, GEOMETRY-34, and GEOMETRY-24). It made the most sense to handle 
all of these issues with a general refactoring of the core classes, which is 
what I'm doing on my working branch 
(https://github.com/darkma773r/commons-geometry/tree/geometry-32-working). I 
currently have all of the BSP tree code done (the biggest chunk of this) along 
with the 1D and most of the 2D Euclidean classes. I have yet to do Euclidean 3D 
and spherical 1D and 2D. Here is a comparison of the old API vs the new API for 
calculating the area of the difference of two 2D regions defined by vertex 
paths:

--- Old API ---

DoublePrecisionContext precision = ...;
Vector2D[] aVertices = { ... };
Vector2D[] bVertices = { ... };

PolygonsSet a = new PolygonsSet(precision, aVertices);
PolygonsSet b = new PolygonsSet(precision, bVertices);

PolygonsSet c = (PolygonsSet) new 
RegionFactory<Vector2D>().difference(a.copySelf(), b.copySelf());

double area = c.getSize();


--- New API ---

DoublePrecisionContext precision = ...;
List<Vector2D> aVertices = ...;
List<Vector2D> bVertices = ...;

RegionBSPTree2D a = LineSegmentPath.fromVertices(aVertices, precision).toTree();
RegionBSPTree2D b = LineSegmentPath.fromVertices(bVertices, precision).toTree();

a.difference(b);

double area = a.getSize();


I'll keep you updated as I get closer to finishing. It is a large change so we 
will undoubtedly need to discuss quite a few things. Also, if anyone has free 
time and wants to help with the spherical classes on my working branch, that 
would definitely help speed things along.

Regards,
Matt


________________________________
From: Rob Tompkins <chtom...@gmail.com>
Sent: Thursday, May 23, 2019 12:31 PM
To: dev@commons.apache.org
Subject: Re: [geometry] release


On 5/23/2019 9:49 AM, Gilles Sadowski wrote:
> Hi.
>
> Le jeu. 23 mai 2019 à 15:37, Rob Tompkins <chtom...@gmail.com> a écrit :
>>
>>
>>> On May 23, 2019, at 7:25 AM, Gilles Sadowski <gillese...@gmail.com> wrote:
>>>
>>> Hi.
>>>
>>>> Le mer. 22 mai 2019 à 14:07, Matt Juntunen <matt.juntu...@hotmail.com> a 
>>>> écrit :
>>>>
>>>> Hi Sven,
>>>>
>>>> Until we can roll out an actual release of numbers and geometry,
>>> Any update of the roadmap? :-)
>> Do we have a reason to not release?
> Code is in the middle of being refactored, and contains many
> to-be-deleted classes.


Gotcha...was going to offer to send it up if there was an appetite.


>
> Gilles
>
>> -Rob
>>
>>>> [...]
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to