Re: [Jts-topo-suite-user] Triangulating polygons?
Brought to you by:
dr_jts
From: Ian T. <ij...@ps...> - 2010-04-25 20:09:11
|
On Sat, Apr 24, 2010 at 5:42 PM, Martin Davis <mtn...@te...> wrote: > Yes you are missing something obvious.... 8^) Use > GeometricShapeFactory.setCentre, rather than setBase I'm an idiot! > > I just tried this in your code and it produces the angles you'd expect - > interiorAngle starting from 0, increasing up to 2PI, and decreasing back > down to 0. > I still seem to get a count up to PI and then down to 0 (or -PI -> PI for orientatedAngle). > Ian, at some point can you post your Java code port of the Manocha C > code for the Seidel algorithm? I gave up on that one - I've attached my current code which is based on Computational Geometry De Berg, M., van Kreveld, M.,Overmars, M., Schwarzkopf, O. Springer, 1997 > > And I can't get the link to the extended C code for handling holes to > work - did you manage to find that code? That was the problem I had too. Ian -- Ian Turton |