Question about Delaunay_triangulation_3.h

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Question about Delaunay_triangulation_3.h

Frank Dz
I am currently using CGAL 5.0 to do some geometry processing.
And when I ran this code, there were some errors:

<http://cgal-discuss.949826.n4.nabble.com/file/t376165/1578278882%281%29.jpg>
(as you can see I wanna get the circumcenter)

The compiler said that :

C2039 “circumcenter”:
 is not a member of
“CGAL::Triangulation_cell_base_with_info_3<CellInfo,GT,CGAL::Triangulation_cell_base_3&lt;GT,CGAL::Triangulation_ds_cell_base_3&lt;TDS2>>>”
C:\local\CGAL-5.0\include\CGAL\Delaunay_triangulation_3.h 1851

My CGAL version is 5.0
and The mode is Debug on a windows machine.

Is there a method to solve this problem?



 



-----
be open, be creative, be critical
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


be open, be creative, be critical
Reply | Threaded
Open this post in threaded view
|

Re: Question about Delaunay_triangulation_3.h

Frank Dz
I also tried to use a old version which is CGAL 4.11.3

Yet there was another error:
<http://cgal-discuss.949826.n4.nabble.com/file/t376165/1578281489%281%29.jpg>

Error C2499
“CGAL::internal::boost_::array_binary_tree_node<RandomAccessIterator,ID>::children_type::iterator”:
A class cannot be its own base class (sourcecode ThreeDimensionalShape.cpp)
QMAT_codes
C:\local\CGAL-4.11.3\include\CGAL\internal\boost\array_binary_tree.hpp 54

I then looked to the line 54:
<http://cgal-discuss.949826.n4.nabble.com/file/t376165/1578281632%281%29.jpg>

I wonder if this is due to the incompatible between boost and CGAL?

Thanks for your kind help and guidance~

Best,

Frank





-----
be open, be creative, be critical
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


be open, be creative, be critical
Reply | Threaded
Open this post in threaded view
|

Re: Question about Delaunay_triangulation_3.h

Marc Glisse
In reply to this post by Frank Dz
Hello,

please don't send a picture of a few lines of a program, that's useless
(in particular we cannot see your typedefs), always provide a complete
(minimal) program, in text format, that we can just give to the compiler
to get the same error message as you.

Thanks,

On Sun, 5 Jan 2020, Frank Dz wrote:

> I am currently using CGAL 5.0 to do some geometry processing.
> And when I ran this code, there were some errors:
>
> <http://cgal-discuss.949826.n4.nabble.com/file/t376165/1578278882%281%29.jpg>
> (as you can see I wanna get the circumcenter)
>
> The compiler said that :
>
> C2039 “circumcenter”:
> is not a member of
> “CGAL::Triangulation_cell_base_with_info_3<CellInfo,GT,CGAL::Triangulation_cell_base_3&lt;GT,CGAL::Triangulation_ds_cell_base_3&lt;TDS2>>>”
> C:\local\CGAL-5.0\include\CGAL\Delaunay_triangulation_3.h 1851
>
> My CGAL version is 5.0
> and The mode is Debug on a windows machine.
>
> Is there a method to solve this problem?
>
>
>
>
>
>
>
> -----
> be open, be creative, be critical
> --
> Sent from: http://cgal-discuss.949826.n4.nabble.com/
>
>

--
Marc Glisse

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


Reply | Threaded
Open this post in threaded view
|

Re: Question about Delaunay_triangulation_3.h

Marc Alexa
In reply to this post by Frank Dz
It seems the cells of Triangulation_3 don’t offer a circumcenter function (while, interestingly, the cells of Triangulation _2 or the cells of Delaunay_Triangulation_3 do). You could use the kernel functions (in your case CGAL::circumcenter(fic[i]->vertex(0)->point(),…)).

-Marc



> On 6. Jan 2020, at 03:53, Frank Dz <[hidden email]> wrote:
>
> I am currently using CGAL 5.0 to do some geometry processing.
> And when I ran this code, there were some errors:
>
> <http://cgal-discuss.949826.n4.nabble.com/file/t376165/1578278882%281%29.jpg>
> (as you can see I wanna get the circumcenter)
>
> The compiler said that :
>
> C2039 “circumcenter”:
> is not a member of
> “CGAL::Triangulation_cell_base_with_info_3<CellInfo,GT,CGAL::Triangulation_cell_base_3&lt;GT,CGAL::Triangulation_ds_cell_base_3&lt;TDS2>>>”
> C:\local\CGAL-5.0\include\CGAL\Delaunay_triangulation_3.h 1851
>
> My CGAL version is 5.0
> and The mode is Debug on a windows machine.
>
> Is there a method to solve this problem?
>
>
>
>
>
>
>
> -----
> be open, be creative, be critical
> --
> Sent from: http://cgal-discuss.949826.n4.nabble.com/
>
> --
> 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


Reply | Threaded
Open this post in threaded view
|

Re: Question about Delaunay_triangulation_3.h

MaelRL
In reply to this post by Frank Dz

Hello,

The cell base type which provides a circumcenter() call is Delaunay_triangulation_cell_base_with_circumcenter_3, whereas you're only using a Triangulation_cell_base_with_info_3.

So, you want something like:

typedef Some_kernel                                                                                                K;
typedef CGAL::Triangulation_vertex_base_3<K>                                                     Vb;
typedef CGAL::Triangulation_cell_base_with_info_3<K>                                          Cbb;
typedef CGAL::Delaunay_triangulation_cell_base_with_circumcenter_3<K, Cbb>  Cb; // Now, the cell provides both info() and circumcenter()
typedef CGAL::Triangulation_data_structure_3<Vb, Cb>                                         TDS;
typedef CGAL::Delaunay_triangulation_3<K, TDS>                                                  Triangulation;

Best,
Mael

On 06/01/2020 03:53, Frank Dz wrote:
I am currently using CGAL 5.0 to do some geometry processing. 
And when I ran this code, there were some errors:

<http://cgal-discuss.949826.n4.nabble.com/file/t376165/1578278882%281%29.jpg> 
(as you can see I wanna get the circumcenter)

The compiler said that :

C2039	“circumcenter”: 
 is not a member of
“CGAL::Triangulation_cell_base_with_info_3<CellInfo,GT,CGAL::Triangulation_cell_base_3&lt;GT,CGAL::Triangulation_ds_cell_base_3&lt;TDS2>>>”
C:\local\CGAL-5.0\include\CGAL\Delaunay_triangulation_3.h	1851

My CGAL version is 5.0
and The mode is Debug on a windows machine.

Is there a method to solve this problem? 



 



-----
be open, be creative, be critical
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Question about Delaunay_triangulation_3.h

Frank Dz
In reply to this post by Frank Dz

Thanks for your kind help and guidance~ I will have a try. Really thanks!
Plus, I will avoid using part of code to demonstrate next time! Thanks
again! Hope CGAL be better and better!


Best,
Frank



-----
be open, be creative, be critical
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


be open, be creative, be critical