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: "Mukherjee, Soham" <>
  • To: "" <>
  • Subject: Re: [cgal-discuss] Facets from 3D Mesh Generation
  • Date: Fri, 16 Aug 2019 15:58:55 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=buckeyemail.osu.edu; dmarc=pass action=none header.from=buckeyemail.osu.edu; dkim=pass header.d=buckeyemail.osu.edu; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GGkK6hdYV1UKWurpPBXs8ny8Eytz1KXaM7W7IE3tXXk=; b=mE1hs+dyCR+I+gM6bXNmvceIeETWxPavIyYKuCP8fMiaVByQgDFBaC80QBzNBro3fS5HNvUbph7J3umaUxfm6uTQ5PdXTPDVGrkVsUCfDUAE52pKpJuN81SsbRujKoOj1G+JjmV8HQythc40r6/KWfIxgigY4zPJWBC0E8PvR+/XuBxZByowW3pOyNr0rtuMY43aG3XP08JCbJUB6djfa4wpVWXsYMjWJIbD/q38dJXAoeeYtTQm0iLimSxNC3rVuJmcPmqKdnDDI7rP+Thg+TIo/MfCXhRA+iV/K3lBoLHgltW+2oYYbDvi5UGyG9XHXhfszYrwRIeCmvWZNivfjQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TYR3dEenNkeocbdGLTGS+cZgpbNoWnP5L/aEZ4+HNEvivs0LteKqm5xEYuB28JxiOqQ5DI+GpDMjLAFqCXLZWAkcMCbtbJhqUyVjmtSbPw8uXEoZAzJZouVw6OBdU421d5EWCmrYAAFmRUU7h7/Noomd4QfVFzOSarGLQCIKaz0BvJL7/gzE4bEuHdFE2g4uhabPqF5PAWn72Tg7ed42TqP2J8dY85Dfie134PukFzLW5U8Kcjxb2fokc4HiGJAqvcuiyfhfy6eb+YQ/m22La43r5PnN5a74Rq48JM00bOWJdWsE4l07R80wSyZpX6UEwBEp7DVvoO6zBDjDehmFaw==
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:dPZtmhcwu67gFRzktHnEnOgqlGMj4u6mDksu8pMizoh2WeGdxcW4YB7h7PlgxGXEQZ/co6odzbaP6ea5AjdLsM7JmUtBWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYdFRrlKAV6OPn+FJLMgMSrzeCy/IDYbxlViDanbr5+MQu6oR/MusQYj4ZuJaI8xgfUqXZUZupawn9lK0iOlBjm/Mew+5Bj8yVUu/0/8sNLTLv3caclQ7FGFToqK2866tHluhnFVguP+2ATUn4KnRpSAgjK9w/1U5HsuSbnrOV92S2aPcrrTbAoXDmp8qlmRAP0hCoBKjU09nzchM5tg6JBuB+vpwJxzZPIYI+bN/R+cKHSfdIGSmVORcteTTBNAoamYocTE+YMP+BVpJT9qVsUqhu+ABGhCO3oxD9VhX/23bM10/4jEQ7YwgMsB88FvmnTrNX1LqgSVO65x7TPwDXGcvNW2jf955bSchAjv/6DQ6h8fdfPxUQuDA7KlUiQppDmPzyL1uUCrW2b4PBhVeKrkWInrBpxoiW1ysgyl4bJm5sYx1bZ/it62IY4PcC0RUF4bNK+DZddti+XO5FrTs4iXm1kojs2x7ICtJKjYSQHypsqywTCZ/CbfYWE+A/vWPqVLDtihX9oeqqzhxis/kWj1uHxU8y53VdFoyZZk9TBs24C2wLO5ceaT/Z98Ems1SuK2g/O6uxJIk40mKzGIJA72LEwjIAcsUHbEy/2hkr2iKiWe10h+umn9+joeKzqqoOAO4Nqlg7+PLkhltCiDegiKggOR2ib+eOn1L3/40L2Xa9GgeExkqncqJzaJMIbqbClAwJNz4ou5BWyAy273NkZk3QLNk9JdRKag4TzJl3DL/T1Ae+6g1u2kTdrw/7GPqfmApXINnXDlarhfbV960FC0gozz85Q6IxOBr0cPv7+W1T8u8fFDhAlMAy73ebmB8t41owEWGKPBrWVMKTJsV+V/O4gPfSDZJINtDbnN/cl/+LujWM+mVIFYaap0oEYaHShEvt7IkWZembjgsoaEWcRpQc+V+zriFiaUTFJfXqyXqQ85is6CI28F4vDSJqt0/S923LxFZJfYiVKC0uHDGzzX4SCQfYFLiyIaIc1mTMNUf2tSpQqyAq1nA780btuaOTOrH42r5XmgZJQ+u7TmAsw+DEwR/+a02iIBSkgm34LRzIs3q1y5xUnlH+JzKN7ju1VENVS47VOSRp8OJLBmb8pQ+vuUx7MK4/aAG2tRc+rVGloE4ABhuQWakM4IO2MyxDO2y3wU+0Qh+SCQcRsqKnS0yCoYd5ly3HdyKQtyVIhR5kXbDH0tutE7wHWQrXxvQCBja/wLPYWwSXO+XaOyGOPuAdfSxM2XKnYDyhGNxnm6O/h70aHdIeATLEuMw9P08mHcPIYYMDijlhXSfLqOdCYZHms3Wq8GETRyw==

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


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