Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Adaptive tetrahedralization of a cube

Subject: CGAL users discussion list

List archive

[cgal-discuss] Adaptive tetrahedralization of a cube


Chronological Thread 
  • From: suellenmotta <>
  • To:
  • Subject: [cgal-discuss] Adaptive tetrahedralization of a cube
  • Date: Thu, 26 Jul 2018 16:31:21 -0500 (CDT)
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
  • Ironport-phdr: 9a23:175PIRdTWwbnuVOlHwBWXEoNlGMj4u6mDksu8pMizoh2WeGdxcu5Zh7h7PlgxGXEQZ/co6odzbaO7ea4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahYL5+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v6bpgRh31hycdLzM3/mHZhNJzgqxGrx2uuxNxzpXIYIyXKPZyYr/Rcc8ESWdHQ81fVzZBAoS5b4YXFOoBIPhXr435p1QQqxu+AA6sBP/zyjBSm3T72rY60/k/HgHC2AwvAdQOv2jOo9roKacdTPq6wbLHzTXGdfxW2DP95JLUfRAmpPGBRLR9etffx0koEgPKlFSQqYr9MjOTzOsCqHOU7+5+Wu61l2EnrARxrz6yzckvkonEnp8Zx1TA+Cljzos4Jse0RU16bNK+EZZdtieXPJZsTMw4WWFnoiM6x6UGuZGleCgKz4wqxxjQZvCddYiH+AnsW/2VIThmnn5qZLW/hxOq/UihzO3zSNW03U5XoidBltTArH4A2h/J5sWES/Zx5Eas1DeX2wDW8O5EIEQ0laTBK54mx749joETsVndES/ynEX5kqmWeVk+9ee19uTof6/pq4STN49xkA7+M6AultajDuQ/NwgCR3Kb9vik1L3/4U35R61HgeE5kqbDtJDWPNkUpq+iAwBJz4Yj8A2/Aiy90NUYmHkHNEhKdAiGj4jvIVHOIer3Ae2xg1S2w39XwKXNMbTlR5nMNXPei6zJfLBn6kcaxhBg48pY4sdPF7wFJP/1X0jtqNWQWgQkPgiwzuDsAdlg2oo2VmeGA6vfO6TX5wzbrtkzKvWBMddG8A32LOIosqa33C0J3GQFdKzs5qM5LXWxH/BoOUKcOCO+jdIIEGNMtQ07Hrez1A+yFAVLbnP3ZJoSoykhAdv/X4jGT4GpxreG2XXjR8AEViV9ElmJVEzQWcCEVvMLMX/AJJMnlDUOX7ysDYQm0EP3uQ==

Hello everyone,

I need to generate a 3d mesh inside a cube, with tetrahedron sizes
respecting a distance field I already have.
I am new to CGAL, but I understand the best way to go is to use
Mesh_triangulation_3 in a Polyhedral_mesh_domain_with_features_3 (right?).

However, in my results, the size of the tetrahedrons (adaptive or not) are
respected only in the most interior part of the cube, as in the image below.
<http://cgal-discuss.949826.n4.nabble.com/file/t376016/cube00.png>

The image is result of the following code. What can I do to have the size
respected in all the cube region? Am I misusing something or is this some
limitation of the implemented Delaunay method itself?

typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef K::FT FT;
typedef CGAL::Mesh_polyhedron_3<K>::type Polyhedron;
typedef CGAL::Polyhedral_mesh_domain_with_features_3<K> Mesh_domain;
typedef CGAL::Sequential_tag Concurrency_tag;
typedef
CGAL::Mesh_triangulation_3<Mesh_domain,CGAL::Default,Concurrency_tag>::type
Tr;
typedef CGAL::Mesh_complex_3_in_triangulation_3
C3t3;
typedef CGAL::Mesh_criteria_3
Mesh_criteria;

using namespace CGAL::parameters;

Polyhedron polyhedron; //I skipped the creation of the cube here but all
their coords range from -1 to 1
Mesh_domain domain(polyhedron);
domain.detect_features();

Mesh_criteria criteria(facet_size=0.05); //Not using the adaptive size here.

C3t3 c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria, manifold());

//And then I iterate the resulted triangulation and save an off file.


Thank you, in advance.
Suellen





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



Archive powered by MHonArc 2.6.18.

Top of Page