[geos-commits] r3863 - trunk/tests/unit/triangulate

svn_geos at osgeo.org svn_geos at osgeo.org
Sun Aug 4 05:23:01 PDT 2013


Author: strk
Date: 2013-08-04 05:23:01 -0700 (Sun, 04 Aug 2013)
New Revision: 3863

Modified:
   trunk/tests/unit/triangulate/DelaunayTest.cpp
Log:
Simplify testcase for DelaunayTriangulationBuilder::envelope

Modified: trunk/tests/unit/triangulate/DelaunayTest.cpp
===================================================================
--- trunk/tests/unit/triangulate/DelaunayTest.cpp	2013-08-04 11:58:32 UTC (rev 3862)
+++ trunk/tests/unit/triangulate/DelaunayTest.cpp	2013-08-04 12:23:01 UTC (rev 3863)
@@ -177,21 +177,14 @@
 	template<>
 	void object::test<9>()
 	{   
-		WKTReader reader;
-		Geometry* sites = reader.read("MULTIPOINT ((150 200), (180 270), (275 163))");
-		Coordinate a(150,200);
-		Coordinate b(180,270);
-		Coordinate c(275,163);
 		std::vector<Coordinate>* v = new std::vector<Coordinate>();
-		v->push_back(a);
-		v->push_back(b);
-		v->push_back(c);
+		v->push_back( Coordinate (150,200) );
+		v->push_back( Coordinate (180,270) );
+		v->push_back( Coordinate (275,163) );
 
 		geos::geom::CoordinateArraySequence *seq = new CoordinateArraySequence(v);
 
-		DelaunayTriangulationBuilder builder;
-		builder.setSites(*seq);
-		Envelope env = builder.envelope(*seq);
+		Envelope env = DelaunayTriangulationBuilder::envelope(*seq);
 
 		ensure_equals(env.getWidth() , 125);
 		ensure_equals(env.getHeight() , 107);



More information about the geos-commits mailing list