[GRASS-SVN] r73861 - grass-addons/grass7/vector/v.delaunay3d

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 26 06:14:25 PST 2018


Author: hcho
Date: 2018-12-26 06:14:25 -0800 (Wed, 26 Dec 2018)
New Revision: 73861

Modified:
   grass-addons/grass7/vector/v.delaunay3d/main.cpp
Log:
v.delaunay3d: Cast up CGAL::Delaunay_triangulation_3<K> to CGAL::Triangulation_3<K>; static_cast fails?

Modified: grass-addons/grass7/vector/v.delaunay3d/main.cpp
===================================================================
--- grass-addons/grass7/vector/v.delaunay3d/main.cpp	2018-12-26 12:42:46 UTC (rev 73860)
+++ grass-addons/grass7/vector/v.delaunay3d/main.cpp	2018-12-26 14:14:25 UTC (rev 73861)
@@ -103,7 +103,7 @@
     /* do 3D triangulation */
     G_message(_("Creating TEN..."));
     if (!flag.plain->answer)
-        T = new DelaunayTriangulation(points.begin(), points.end());
+        T = reinterpret_cast<Triangulation *>(new DelaunayTriangulation(points.begin(), points.end()));
     else
         T = new Triangulation(points.begin(), points.end());
     



More information about the grass-commit mailing list