Re: [Jts-topo-suite-user] Triangulating polygons?
Brought to you by:
dr_jts
From: Michael B. <mic...@gm...> - 2010-04-25 05:11:07
|
Thanks Martin. That would indeed work in this case. Michael On 25 April 2010 15:09, Martin Davis <mtn...@te...> wrote: > You might want to try normalizing the orientation of the shell and hole > rings, so that they are compatible (that is, so that they all have the > interior on the same side). In the polygon WKT below both the shell and > the hole are CCW. In a normalized polygon the shell is CW and the holes > are CCW. (There is a method Geometry.normalize() that does this - but > be aware that it modifies the geometry it is called on, rather than > creating a new one). > > I think this might solve the problem of the loop in the last shell ring > created, which is what is preventing the next triangle from being found. > |