Installs by default with JTS. Run TestBuilder.bat in the JTS bin directory.
On Wed, Dec 4, 2013 at 11:37 AM, Brian Sanjeewa Rupasinghe <
[email protected]> wrote:
> Hi Martin
>
> I have not used TestBuilder. Any guide to install it in windows 7.
>
>
> On Wed, Dec 4, 2013 at 7:25 PM, Martin Davis <[email protected]> wrote:
>
>> I don't think so... this looks very similar to the code that the
>> TestBuilder uses to run the ConformingDelaunayTriangulationBuilder. The
>> CDTB extracts all line segments from whatever geometry is provided as the
>> constraints.
>>
>> Try running your example in the TestBuilder and see if it works. Then
>> perhaps debug into both and see where they diverge.
>>
>>
>>
>> On Wed, Dec 4, 2013 at 10:31 AM, Brian Sanjeewa Rupasinghe <
>> [email protected]> wrote:
>>
>>> Hi,
>>>
>>> I used the following method for the triangulation. I use polygons as
>>> constraints as well. Input Geometry is multipoint of all polygon vertices.
>>> Then polygons are used as constraints in a GeometryCollection. Was it
>>> because i used polygon geometry itself as constraints rather than its line
>>> segments?
>>>
>>> public static Geometry TriangulationBuilder (MultiPoint mp,
>>> ArrayList<Geometry> alg, double tolerance)
>>> {
>>> GeometryFactory gf = new GeometryFactory();
>>> ConformingDelaunayTriangulationBuilder cdtb = new
>>> ConformingDelaunayTriangulationBuilder();
>>> //constriant geometry
>>> Geometry consegs = gf.buildGeometry(alg);
>>> //GeometryCollection g_cp = (GeometryCollection)
>>> gf.createGeometryCollection(als);
>>> //set sites for triangulation
>>> cdtb.setSites(mp);
>>> //set constraints
>>> cdtb.setConstraints(consegs);
>>> //set tolerance -0.00001
>>> cdtb.setTolerance(tolerance);
>>> //Retrieving triangles
>>> Geometry Trigeom = cdtb.getTriangles(gf);
>>> return Trigeom;
>>> }
>>>
>>>
>>>
>
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user