[geos-commits] [SCM] GEOS branch main updated. cad79cae0413e8aa1f0ba6c563911e7c82aba4cc

git at osgeo.org git at osgeo.org
Sat Sep 25 12:50:43 PDT 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, main has been updated
       via  cad79cae0413e8aa1f0ba6c563911e7c82aba4cc (commit)
      from  e070d587659d3b3bc2f53a0bd9a50f9a9701ec74 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit cad79cae0413e8aa1f0ba6c563911e7c82aba4cc
Author: Martin Davis <mtnclimb at gmail.com>
Date:   Sat Sep 25 12:50:39 2021 -0700

    Add geosop constrainedDelaunay

diff --git a/util/geosop/GeomFunction.cpp b/util/geosop/GeomFunction.cpp
index c9a0e5a..fc19482 100644
--- a/util/geosop/GeomFunction.cpp
+++ b/util/geosop/GeomFunction.cpp
@@ -43,6 +43,7 @@
 #include <geos/simplify/TopologyPreservingSimplifier.h>
 #include <geos/triangulate/DelaunayTriangulationBuilder.h>
 #include <geos/triangulate/VoronoiDiagramBuilder.h>
+#include <geos/triangulate/polygon/ConstrainedDelaunayTriangulator.h>
 
 #include "GeomFunction.h"
 
@@ -255,6 +256,12 @@ GeomFunction::init()
             }
             return new Result( std::move(geoms) ) ;
         });
+    add("constrainedDelaunay", 1, 1, Result::typeGeometry, catConst,
+        "constrained Delauanay triangulation of polygonal geometries",
+        [](const std::unique_ptr<Geometry>& geom, const std::unique_ptr<Geometry>& geomB, double d)->Result* {
+            (void)geomB;  (void)d; // prevent unused variable warning
+            return new Result( geos::triangulate::polygon::ConstrainedDelaunayTriangulator::triangulate(geom.get()) );
+         });
 
     add("voronoi", 1, 0, Result::typeGeometry, catConst,
         "computes the Voronoi Diagram of geometry vertices",

-----------------------------------------------------------------------

Summary of changes:
 util/geosop/GeomFunction.cpp | 7 +++++++
 1 file changed, 7 insertions(+)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list