Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Triangulate without hanging nodes on boundary

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Triangulate without hanging nodes on boundary


Chronological Thread 
  • From: Renato Poli <>
  • To:
  • Subject: Re: [cgal-discuss] Triangulate without hanging nodes on boundary
  • Date: Tue, 10 Sep 2019 13:39:37 -0500 (CDT)
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
  • Ironport-phdr: 9a23:XlqcEx+1dhAyQf9uRHKM819IXTAuvvDOBiVQ1KB40ewcTK2v8tzYMVDF4r011RmVBN6ds6oP0rKN++C4ACpcuMzH6ChDOLV3FDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3OgV6PPn6FZDPhMqrye+y54fTYwJVjzahfL9+Nhq7oRjfu8UMnYduNqk9xgbVrnZGZu9awX9kKU+Jkxvz+8u84oRv/zhMt/4k6sVNTbj0c6MkQLJCET8oKXo15MrltRnCSQuA+H4RWXgInxRLHgbI8gj0Uo/+vSXmuOV93jKaPdDtQrAvRTui9aZrRwT2hyoBKjU07XvYis10jKJcvRKhuxlyyJPabY2JKPZzeL7WcNUHTmRDQ8lRTTRMDI28YYURDOQOP+hYoZTyqFQSohWzHhWsCeHzxjNUmnP6wbM23uI8Gg/GxgwgGNcOvWzIotrrMqcdS/y1zK7VxjvZaPNW3Tb945XPfxA7ufGMWrZwccvKxEkyDAPFlk+cppf/Pz6M0OkGrmaV7+1lVe21im4nrRl8oj61ycg3kYbJgpwaxkrY+iV+xYY4I8CzRk1jYdO8DZddsyWXO5F4T84hWW1luyc3xqcHtJO6eiUB1Y4pyATFa/OddoiF+hLjW/iVITd/nH9lfr2yiwy08Ue60eLzTc2030hQoiVZldnMs2gB1x3V6seZVvtw5lqt1DKL2gzJ5OxJIlo4mKnaJpI7w7M9l4IfsUHZES/3nEX2grWWdkIh+uWw8eTnerLmppudN4JvlwH+KbwultakDuQiKgQORXSU+fyg1L3/+k30WKlFjvIsnandqZzVOMUbprWlDA9IyYYj8A2yDyym0dQdhXkINkhJeBOBj4jzOlHBOur0DfmlgwfkrDA+zP/POvjtA47GM2PYuLbnZ7d0rUBGmyQpytUK3Z9SA60GaMr0Xk654MbACRs4GxGv26DtEoMuhcslRWuTD/rBY+vpuliS67d3erXeVMouoD/4bsMdybv2l3Zpy0IGZe+jx8lPMSHqLrFdO0ycJEHUrJIEGGYOsBA5Sby4lUaaFzRJNS3rAvAMowojAYfjNr/tA4CghLvYgXW9QttQb2pMDl3KGnDtJdyJ

Hi Sebastien,

I worked the past days on simplifying my problem and trying to understand
what is going on.
I made a very raw code (below) as an example.

Please find attached three pictures:
(1) the mesh without refinement
<http://cgal-discuss.949826.n4.nabble.com/file/t376144/cgal-mesh1.png>

(2) the refined mesh after
/ typedef CGAL::Delaunay_mesh_size_criteria_2<CDT> Criteria;
CGAL::refine_Delaunay_mesh_2(cdt,seeds.begin(), seeds.end(),
Criteria(0, 100));/
<http://cgal-discuss.949826.n4.nabble.com/file/t376144/cgal-mesh2.png>

(3) the seed location (the extra point when compared to mesh1)
<http://cgal-discuss.949826.n4.nabble.com/file/t376144/cgal-mesh3.png>

I dont understand
(i) why the refiner changes the mesh beyond the shape and size
criteria? ; and
(ii) why the mesh refiner changes the area with a seed?

Is there any way to avoid those points and get more 'control' on the
meshing?

Thanks upfront,
Renato


==== Raw code for mesh creation
40 typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
41 typedef K::Point_2 CPoint;
42 typedef CGAL::Polygon_2<K> CPolygon;
...
44 typedef CGAL::Triangulation_vertex_base_2<K> Vb;
45 typedef CGAL::Triangulation_face_base_with_info_2<FaceInfo2,K> Fbb;
46 typedef CGAL::Delaunay_mesh_face_base_2<K,Fbb> Fbbb;
47 typedef CGAL::Constrained_triangulation_face_base_2<K,Fbbb> Fb;
48 typedef CGAL::Triangulation_data_structure_2<Vb, Fb> Tds;
49 typedef CGAL::Exact_predicates_tag
Itag;
50 typedef CGAL::Constrained_Delaunay_triangulation_2<K, Tds, Itag> CDT;
...
56 typedef CGAL::Delaunay_mesh_size_criteria_2<CDT> Criteria;
...
83 CPolygon pgn;
84 pgn.push_back( CPoint(5.88643, 2.60851));
85 pgn.push_back( CPoint(5.81283, 2.89567));
86 pgn.push_back( CPoint(5.625, 3.125));
87 pgn.push_back( CPoint(5.58073, 3.40017));
88 pgn.push_back( CPoint(5.53646, 3.67535));
89 pgn.push_back( CPoint(5.18695, 3.80367));
90 pgn.push_back( CPoint(4.82072, 4.10386));
91 pgn.push_back( CPoint(4.78469, 3.81578));
92 pgn.push_back( CPoint(4.53348, 4.14603));
93 pgn.push_back( CPoint(4.375, 3.75));
94 pgn.push_back( CPoint(3.98473, 3.96918));
95 pgn.push_back( CPoint(3.96882, 3.53733));
96 pgn.push_back( CPoint(3.76489, 3.76106));
97 pgn.push_back( CPoint(3.60312, 3.3071));
98 pgn.push_back( CPoint(3.38327, 3.09255));
99 pgn.push_back( CPoint(3.64059, 2.897));
100 pgn.push_back( CPoint(3.23544, 2.82327));
101 pgn.push_back( CPoint(3.43546, 2.57049));
102 pgn.push_back( CPoint(3.47702, 2.25083));
103 pgn.push_back( CPoint(3.69296, 1.91734));
104 pgn.push_back( CPoint(3.93944, 1.62403));
105 pgn.push_back( CPoint(4.26672, 1.81009));
106 pgn.push_back( CPoint(4.21836, 1.51922));
107 pgn.push_back( CPoint(4.51268, 1.50128));
108 pgn.push_back( CPoint(4.81592, 1.47285));
109 pgn.push_back( CPoint(5.08929, 1.60714));
110 pgn.push_back( CPoint(5.46234, 1.783));
111 pgn.push_back( CPoint(5.44254, 2.08688));
112 pgn.push_back( CPoint(5.69193, 2.26163));
113
114 CPolygon ext_pgn;
115 ext_pgn.push_back( CPoint(1, 0) );
116 ext_pgn.push_back( CPoint(8, 0) );
117 ext_pgn.push_back( CPoint(8, 6) );
118 ext_pgn.push_back( CPoint(1, 6) );
119
120 std::list<CPoint> seeds;
121 seeds.push_back( CPoint(2.68962, 2.55613) );
122
123 CDT cdt;
124 cdt.insert_constraint(pgn.vertices_begin(), pgn.vertices_end(), true
);
125 cdt.insert_constraint(ext_pgn.vertices_begin(),
ext_pgn.vertices_end(), true );
126
127 // CGAL::refine_Delaunay_mesh_2(cdt,seeds.begin(), seeds.end(),
Criteria(0, 100));




--
Sent from: http://cgal-discuss.949826.n4.nabble.com/



Archive powered by MHonArc 2.6.18.

Top of Page