Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Facets from 3D Mesh Generation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Facets from 3D Mesh Generation


Chronological Thread 
  • From: Andreas fabri <>
  • To:
  • Subject: Re: [cgal-discuss] Facets from 3D Mesh Generation
  • Date: Fri, 16 Aug 2019 13:53:49 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:v6B2tRMJ4RcsWsjYTtEl6mtUPXoX/o7sNwtQ0KIMzox0Iv3yrarrMEGX3/hxlliBBdydt6sezbON6Ou8ACQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTagf79+Ngi6oAvfu8UZjoZuN7s6xwfUrHdPZ+lY335jK0iJnxb76Mew/Zpj/DpVtvk86cNOUrj0crohQ7BAAzsoL2465MvwtRneVgSP/WcTUn8XkhVTHQfI6gzxU4rrvSv7sup93zSaPdHzQLspVzmu87tnRRn1gyoBKjU38nzYitZogaxbvB2vqBNwzYDJbo+WOvpxfL3Tc9QBSGVbXMtRUjZMAoOgY4YNCecKIOZWr5P6p1sLtRazGQ+sC/71yjBWnHD2xrAx0+o7Hg7dxgwgHs8FvXPOo9XzKagSS/66w7PTzTnZYfNZwyzy6JLJch06rvGDQ7Vwcc/PxkkzDQPEjluQppb5MDOJ0eQNqWia4/B8WuKojm4qsgd8qSWsyMc0koTFm4EYx1Pe+SlkwYs4Jce0RUB1bNK+Dpdcqz+WO5NyT84sWW1luCc3xqcEtJO5ZiQG1ZcqyhrZZveaaYaH+AjjW/yUITpghHJqZra/hxGq/ES9xODwTMy00FFEoyZfl9nDrHEN1xjK5siAV/t94l2t2TGR1wDT8O1EJ147lbbDJ54gxL4/iIYTvFzeEiL1m0j6lrKae0Qk9+Sy5enqbK/qqoGAO4Nqkg3+N74hms27AeQ2KAgOWG2b9Pym273l4EL5WqtFgectkqXDvpDVP98UprS4AwJO3YYs9RG/DzK439QEh3kGLFxFdwibgIj1PFHOOvD5Ae2jjFSrlTdn3+rGMaH5ApXRMnjDl6/scqpy60FGzAo/1M1Q55NPCr4dPfLzQVTxucfDDh45Ngy02/zoBM981oMYQ2KPA7WWPLncsV+StaoTJLyHa4YR/Tr8MPM4/OXGjHkjmFZbc7P684EQbSWRGPh8LkyCKXTliM0AWTMDuAYkQeXxzlOLWyRST3m/WKcx+isqBoutEYDZV8amh7nXj3TzJYFfem0TUgPEKnzvbYjRA65dOhLXGddol3k/bZbkToYg0R+0swqgkuhoI+3R9zECpJzq38Ry/fyVnhY3p2QtU5atllqVRmQxpVsmAics1fom80NwzVKOzbJpjfVTCdtJ9rVCVQJobceBndw/MMj7X0f6RvnMSFuiRY/7U2hqCNc2mJkLakd5XtK/klbEwSrsBbIJxeSG

The finite facets are all facets of the triangulation of the convex hull of the input. That is you only do not get facets with a vertex at infinity. 
Andreas

On 16 Aug 2019, at 06:22, Mukherjee, Soham <> wrote:

Hi All,
Is there any way to extract all the facets (not just the boundary facets) that belong to tetrahedra of C3T3::Triangulation? What I am doing is following:
1. Iterate over finite faces of C3T3::Triangulation object obtained from the function call refine_mesh(…..) 
C3t3 c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria);
C3t3::Triangulation tr = c3t3.triangulation();
for(auto fit=tr.finite_facets_begin();fit!=tr.finite_facets_end();fit++){
C3t3::Triangulation::Cell_handle c = fit->first;
int i = fit->second;
std::vector<unsigned> face_id;
face_id.push_back(vid[c->vertex((i+1)%4)]);
face_id.push_back(vid[c->vertex((i+2)%4)]);
face_id.push_back(vid[c->vertex((i+3)%4)]);
// Write this vertex indices of face i.e. connectivity information to file
}
But when I output the whole c3t3 to unstructuredgridVtk by calling output_to_vtu(c3t3) it is nicer (the way Delaunay Refined 3D Mesh should look like) and not like the mesh I obtained from manually outputting the info.
Am I missing something? That is needed to be taken care of?For sake of clarity I am attaching two pictures with this email.
Manual Output:




.<Manual_Output.png>
Output to vtu:
<Output_to_vtu.png>



Archive powered by MHonArc 2.6.18.

Top of Page