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: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Facets from 3D Mesh Generation
  • Date: Mon, 2 Sep 2019 08:55:35 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:jzUMuR8xLWex2P9uRHKM819IXTAuvvDOBiVQ1KB20+IcTK2v8tzYMVDF4r011RmVBN+dsqwVwLOO4ujJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglVmjaxe65+IRSyoAneq8UanY9vIbstxxXUpXdFZ/5Yzn5yK1KJmBb86Maw/Jp9/ClVpvks6c1OX7jkcqohVbBXAygoPG4z5M3wqBnMVhCP6WcGUmUXiRVHHQ7I5wznU5jrsyv6su192DSGPcDzULs5Vyiu47ttRRT1jioMKjw3/3zNisFokaxVvhyhqRx8zYDabo6aO/hxcb/Sc94BWWpMXdxcWzBdDo6ybYYCCfcKM+ZCr4n6olsDtRWyCxSyC+z00DBInWP23awk3OQnDArI2gsgH8gPsHTTsNX+KaMeX+Grw6nPyDXMce9W2S396YbIaB8uve2MXbVqccvRzEUjGR7Og1KLqYzhODOVzOUNs2+H7+Z6UOKvj3Uqqw50oje1x8csjpPFiZ4SylDB7Ch0xps+K9O/SE5+e9GkEZ1QujmGOIt5WMwiR3tkuCEgyr0Jv5OwYSsEyIw/yhLBd/CKd5KE7xHjWeqLPzt0mm9pdKiwihuy6USs1PfzWtWp3FtPsCVInNbBu3UT2Bzd68WIVv5w8lqu1DmUywze7/9ILEQqmqfZLpMsw6I/m5sQvEnGHiL7mFj5ga+Te0o65+el6fjob7P7rZGGLYB0kBvxMqE2l8y/H+s4Ng8OUnCe+eum1b3j+VT1QbtQjvEri6XZvp/XKMQBqq62BA9V1Ykj6xKhADu8zNsYmnwHIEpEeBKBkYfpJ0nDLO7kAfq7mVihkzdmy+rYMrH/H5nBNHfOnbf5cbZ48UFcyQ4zzd5F55JTD7EMOOnzWkv2tNzCDx85NBC0z/ziCNV5zY4eVmePDbWYMKPWq1OH+uUvI+yUaI8PpDn9M+Ql5+LpjXIhhVAdcrOm3Z8OZH+lH/RmOFmWYWf3gtcaCmoKpQo/TOnyiFKYSzJTZnCyX7g95j4hEo6mA53DFciRh+mK0y6/W5FXfWtbEUukEHHydozCVe1fRjiVJ5orqTEOXKO9SoInnTWprg791/InAefT/yAEr4PN3dNp4PfC1Ft6oSdwCN6c1H3LSmVckWYBRjtw16d69x8ugmyf2LR11qQLXedY4OlEB19jZMzsitdiAtW3YTrvO9KASVKoWNKjWGhjQdc4wttIaEF4SYz70kLzmhGyCrpQrISlQYQu+/uFjXf0Lsd5jX3B0ft51gR0co50LWSjw5VH2U3TCorOyRjLkq+rceEDxneI+jvei2WJu05cXUh7VqCXBX0=

Go back to the user manual of the 3D triangulations package.

A 3D triangulation in CGAL is a triangulation of the whole 3D space.
To do that an extra vertex (the infinite vertex) is added in the
triangulation data structure and is connected to all the faces of
the convex hull of the input point set. Each face on the convex hull
corresponds to a infinite cell with the infinite vertex opposite to
the face.

See:
https://doc.cgal.org/latest/Triangulation_3/classCGAL_1_1Triangulation__3.html#a0dde82d53bcd9f705f3a676329c1df2d

https://doc.cgal.org/latest/Triangulation_3/classCGAL_1_1Triangulation__3.html#ad9890c64030969cd74f35a007cb6b049

Sebastien.

On 8/16/19 5:58 PM, Mukherjee, Soham wrote:
Hi Andreas,
Thank you for your reply. Can you please elaborate more a bit? I am not sure what do you mean by finite facets will give me the triangulation of convex hull of the input?

Thanks,
Soham

On Aug 16, 2019, at 7:53 AM, Andreas fabri < <mailto:>> wrote:

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 < <mailto:>> 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