[GRASS-dev] v.delaunay3d error

Huidae Cho grass4u at gmail.com
Wed Dec 26 06:16:01 PST 2018


I tried static_cast, but it didn't work (not sure why). C-style casting and
reinterpret_cast worked though.

Huidae

On Tue, Dec 25, 2018 at 5:16 PM Markus Neteler <neteler at osgeo.org> wrote:

> On Thu, Dec 20, 2018 at 6:39 PM Huidae Cho <grass4u at gmail.com> wrote:
> > Hello Martin,
> >
> > I'm getting this error when compiling your v.delaunay3d addon with CGAL
> 4.13:
> >
> > main.cpp:106:11: error: cannot convert 'DelaunayTriangulation* {aka
> CGAL::Delaunay_triangulation_3<CGAL::Epick>*}' to 'Triangulation* {ask
> CGAL::Triangulation_3<CGAL::Epick>*}' in assignment
> >     T = new DelaunayTriangulation(points.begin(), points.end());
> >
> > Maybe, simple type casting, but I'm not a C++ expert. Any idea?
>
> Perhaps you can get some ideas from this example?
>
>
> https://github.com/CGAL/cgal/blob/master/Triangulation_3/examples/Triangulation_3/simple_triangulation_3.cpp
>
> Markus
>


-- 
Huidae Cho, Ph.D., GISP, PE (MD), CFM, M.ASCE
Open Source GIS Developer, GRASS GIS Development Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20181226/306982d2/attachment.html>


More information about the grass-dev mailing list