Subject: CGAL users discussion list
List archive
- From: BRYang <>
- To:
- Subject: [cgal-discuss] access the full_cell of a regular triangulation
- Date: Wed, 14 Aug 2019 22:32:45 -0500 (CDT)
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Fail ; spf=Pass
- Ironport-phdr: 9a23:KPibSRWyvTJot9lOACCMLgzh8tvV8LGtZVwlr6E/grcLSJyIuqrYYhyGt8tkgFKBZ4jH8fUM07OQ7/m6HzVbud3d6DgrS99lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUhrwOhBoKevrB4Xck9q41/yo+53Ufg5EmCexbal9IRmrswndrNQajIV+Jqo+xRbFvmZDdvhLy29vOV+dhQv36N2q/J5k/SRQuvYh+NBFXK7nYak2TqFWASo/PWwt68LlqRfMTQ2U5nsBSWoWiQZHAxLE7B7hQJj8tDbxu/dn1ymbOc32Sq00WSin4qx2RhLklDsLOjgk+2zRl8d+jr9UoAi5qhJxw4DafoKbOudxcazBct0XXnZBU8RNWyBdHo+wc5UDAuwcNuhYtYn9oF4OoAOjCAewBuzg0DlIhnDr1qA90+UuChvG0RcvHtILrXTYtsv6O7oPUeyv0KbIyyzOYvVL0jnz74jIdwouofCKXb9od8re01IgGBjBjlqOs4DqIzSV1uELvmOG7ORgTfqih3Mjpgx1uDSiyMQhhpPKi48U0FzJ9CR0zYAoLtOiUkF7e8SrEJ5IuiGaKYR2RsQiTnluuCs10LEGv4S0czMRx5Qj2RHTceCIc4+N4h77VeaRJyl3hG59db6igxu/9VKsx+P/W8Wu01tHrzBJn9jNu3wV0hzc8MmHSv9z/ke73jaP0hje6+FfLkAujqfaJJshwqMqmpUNrEvDAzX6l1nwjKOObEUr5vCo6/j7YrXhvpKTK4B0hRv6Mqg3h8O/AP84PRQTX2iA4uSxz6bj/E38QLVSlPI6iKjZsJbAJcQavKG1GQFV0pxwoyq4Wjyp2dBdkXgcJ09eYzqGiZLoMhfAOqPWF/C61n6WoT5tyLiSL7f7KoXIMz7OnKqndrAruB0U8xY60d0Kv8EcMboGOv+mAhat5uydNQcwNkmP+8iiEM90j9lMSWeSRKKVLeXZtw3Qv799E6y3fIYQ/Q3FBb0l6vrp1CJrnwNbe6Cj158aLnu/G6Y/ehTLUT/Xmt4EVFwykE87Re3uhkeFVGcJNWa3QuQx6ix9A4T0UYo=
Hi, I am trying to access the full_cell of a regular triangulation RT, and my
code is as follows:
/////////////////////
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Regular_triangulation_3.h>
#include <CGAL/Regular_triangulation_cell_base_3.h>
#include <CGAL/Triangulation_vertex_base_3.h>
#include <CGAL/Triangulation_vertex_base_with_info_3.h>
class RtVertexInfo
{
public:
unsigned id;
};
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef K::FT
Weight;
typedef K::Point_3
RTPoint;
typedef K::Weighted_point_3
Weighted_point;
typedef CGAL::Regular_triangulation_vertex_base_3<K>
Vb0;
typedef CGAL::Triangulation_vertex_base_with_info_3<RtVertexInfo, K, Vb0>
RtVb;
typedef CGAL::Regular_triangulation_cell_base_3<K>
RtCb;
typedef CGAL::Triangulation_data_structure_3<RtVb, RtCb>
RtTds;
typedef CGAL::Regular_triangulation_3<K, RtTds>
Regular_Triangulation;
typedef Regular_Triangulation::Finite_facets_iterator
Finite_facets_iterator;
typedef Regular_Triangulation::Finite_edges_iterator
Finite_edges_iterator;
typedef Regular_Triangulation::Finite_vertices_iterator
Finite_vertices_iterator;
typedef Regular_Triangulation::Face_circulator
Facet_circulator;
typedef Regular_Triangulation::Cell_handle
Cell_handle;
typedef Regular_Triangulation::Vertex_handle
Rt_Vertex_handle;
//typedef RtTds::Full_cell_const_iterator
Full_cell_const_iterator;
////////////
However, when I was trying to define the Full_cell_const_iterator as the
last line of my code which I have comment out, it shows that
Full_cell_const_iterator is not a member of Triangulation_data_structure_3.
I am wondering what's the matter with my code and how I can access the
Full_cell of the regular triangulation.
The other problem is that when I tried computing the regular triangulation
with a set of spheres, it will fails at inserting some spheres. And I
believe that the sphere should be conflict with some boundary cells of the
triangulation. How can I handle this kind of problem then?
I would be appreciate that someone can help me with these problems.
Thank you!
Best,
Baorong Yang
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] access the full_cell of a regular triangulation, BRYang, 08/15/2019
- <Possible follow-up(s)>
- [cgal-discuss] access the full_cell of a regular triangulation, BRYang, 08/15/2019
Archive powered by MHonArc 2.6.18.