Subject: CGAL users discussion list
List archive
- From: Adam Getchell <>
- To:
- Subject: Re: [cgal-discuss] Adding data to Delaunay_d::Point_d
- Date: Mon, 27 Oct 2014 20:22:14 -0700
Sebastien,
Thank you for the advice. I’m missing something. This:
#ifndef CDT_POINT_H
#define CDT_POINT_H
#include <CGAL/Lazy_exact_nt.h>
#include <CGAL/Gmpq.h>
#include <CGAL/Kernel_d/Point_d.h>
#include <CGAL/Cartesian.h>
typedef CGAL::Lazy_exact_nt<CGAL::Gmpq> > NT;
typedef CGAL::Cartesian<NT> Kernel;
CGAL::Point_d<Kernel> Point_d;
class Point : public Point_d
{
public:
Point() : Point_d()
{
}
};
#endif // CDT_POINT_H
Produces:
┌─[adam][Hapkido][±][master ✗][~/CDT-plusplus]
└─▪ ./build.sh
-- The C compiler identification is AppleClang 6.0.0.6000054
-- The CXX compiler identification is AppleClang 6.0.0.6000054
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Build type: Release
-- USING CXXFLAGS = ' -O3 -DNDEBUG'
-- USING EXEFLAGS = '
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
'
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- DARWIN_VERSION=14
-- Mac Leopard detected
-- Requested component: Core
-- Requested component: MPFR
-- Requested component: GMP
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/adam/CDT-plusplus/build
Scanning dependencies of target cdt
[ 14%] Building CXX object CMakeFiles/cdt.dir/src/cdt.cpp.o
Linking CXX executable cdt
[ 14%] Built target cdt
Scanning dependencies of target unittests
[ 28%] Building CXX object CMakeFiles/unittests.dir/unittests/main.cpp.o
[ 42%] Building CXX object CMakeFiles/unittests.dir/unittests/PointTest.cpp.o
In file included from /Users/adam/CDT-plusplus/unittests/PointTest.cpp:2:
/Users/adam/CDT-plusplus/src/Point.h:9:41: error: expected unqualified-id
typedef CGAL::Lazy_exact_nt<CGAL::Gmpq> > NT;
^
/Users/adam/CDT-plusplus/src/Point.h:10:25: error: use of undeclared
identifier
'NT'
typedef CGAL::Cartesian<NT> Kernel;
^
In file included from /Users/adam/CDT-plusplus/unittests/PointTest.cpp:2:
In file included from /Users/adam/CDT-plusplus/src/Point.h:6:
/usr/local/Cellar/cgal/4.4/include/CGAL/Kernel_d/Point_d.h:42:24: error: type
'int' cannot be used prior to '::' because it has no members
class Point_d : public pR::Point_d_base
plus more errors as detailed here:
https://gist.github.com/acgetchell/6a31617bfd6839203553
Adam Getchell
about.me/adamgetchell
> On Oct 27, 2014, at 2:21 AM, Sebastien Loriot (GeometryFactory)
> <>
> wrote:
>
> On 10/27/2014 10:14 AM, Adam Getchell wrote:
>> Thanks Sebastien,
>>
>> Since I am looking for the most accurate possible triangulations, and
>> calculations that don’t crash or compute incorrect results (after,
>> possibly, months of runtime), should I use Homogenous_d?
>>
>> Is mpz_class an appropriate substitute for leda_integer under these
>> conditions, or should I go obtain LEDA?
>>
>> I also looked at using the Epick_d kernel, but it does not appear to be
>> present in CGAL 4.4.
>
> Epick_d is the one you should use. Robust and fast.
>
> If you can't you can try using
> CGAL::Cartesian_d<CGAL::Lazy_exact_nt<CGAL::Gmpq> >
>
>
> Sebastien.
>
>>
>>
>> Adam Getchell
>> about.me/adamgetchell
>>
>>> On Oct 23, 2014, at 5:03 AM, Sebastien Loriot (GeometryFactory)
>>> <>
>>> wrote:
>>>
>>> On 10/23/2014 09:28 AM, Adam Getchell wrote:
>>>> Hello all,
>>>>
>>>> Is there an equivalent of CGAL::Triangulation_vertex_base_with_info_3
>>>> for Delaunay_d?
>>>>
>>>> From looking over the documentation, it appears that unlike
>>>> Delaunay_triangulation_3 which is built on a
>>>> Triangulation_vertex_base_3, Delaunay_d seems to be built on the
>>>> Convex_hull_d?
>>>>
>>>> Where would be the best place to insert such data? I have, for example,
>>>> written a Delaunay : public Delaunay_d which includes member functions
>>>> such as number_of_cells() which are available in
>>>> Delaunay_triangulation_3 but not implemented in Delaunay_d.
>>>>
>>>> Suggestions most appreciated.
>>>>
>>>> Adam Getchell
>>>> about.me/adamgetchell
>>>>
>>>>
>>> I just looked at the code and there is no elegant way to do it
>>> (using a template parameter).
>>> What you could try is create a traits class inheriting from the
>>> recommended one and it might be sufficient to define a new Point_d
>>> class with your info inheriting from traits::Point_d.
>>>
>>> Just a guess I haven't try whether it works.
>>>
>>> Sebastien.
>>>
>>> --
>>> You are currently subscribed to cgal-discuss.
>>> To unsubscribe or access the archives, go to
>>> https://sympa.inria.fr/sympa/info/cgal-discuss
>>>
>>>
>>
>>
>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
- [cgal-discuss] Adding data to Delaunay_d::Point_d, Adam Getchell, 10/23/2014
- Re: [cgal-discuss] Adding data to Delaunay_d::Point_d, Sebastien Loriot (GeometryFactory), 10/23/2014
- Re: [cgal-discuss] Adding data to Delaunay_d::Point_d, Adam Getchell, 10/27/2014
- Re: [cgal-discuss] Adding data to Delaunay_d::Point_d, Sebastien Loriot (GeometryFactory), 10/27/2014
- Re: [cgal-discuss] Adding data to Delaunay_d::Point_d, Adam Getchell, 10/28/2014
- Re: [cgal-discuss] Adding data to Delaunay_d::Point_d, Adam Getchell, 10/28/2014
- Re: [cgal-discuss] Building CGAL 4.5 with EIGEN3, Adam Getchell, 10/28/2014
- Re: [cgal-discuss] Building CGAL 4.5 with EIGEN3, Sebastien Loriot (GeometryFactory), 10/28/2014
- Re: [cgal-discuss] Building CGAL 4.5 with EIGEN3, Sebastien Loriot (GeometryFactory), 10/28/2014
- Re: [cgal-discuss] Building CGAL 4.5 with EIGEN3, Adam Getchell, 10/28/2014
- Re: [cgal-discuss] Building CGAL 4.5 with EIGEN3, Adam Getchell, 10/28/2014
- Re: [cgal-discuss] Adding data to Delaunay_d::Point_d, Adam Getchell, 10/28/2014
- Re: [cgal-discuss] Adding data to Delaunay_d::Point_d, Adam Getchell, 10/28/2014
- Re: [cgal-discuss] Adding data to Delaunay_d::Point_d, Sebastien Loriot (GeometryFactory), 10/27/2014
- Re: [cgal-discuss] Adding data to Delaunay_d::Point_d, Marc Glisse, 10/28/2014
- Re: [cgal-discuss] Adding data to Delaunay_d::Point_d, Adam Getchell, 10/27/2014
- Re: [cgal-discuss] Adding data to Delaunay_d::Point_d, Sebastien Loriot (GeometryFactory), 10/23/2014
Archive powered by MHonArc 2.6.18.