Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] refine_mesh_3 compile error after successful compilation and run with make_mesh_3
Chronological Thread
- From: rdzhao <>
- To:
- Subject: Re: [cgal-discuss] refine_mesh_3 compile error after successful compilation and run with make_mesh_3
- Date: Thu, 26 Sep 2019 15:09:59 -0500 (CDT)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Fail ; spf=Pass
- Ironport-phdr: 9a23:FarwlhAfe7P3eu4ov8QmUyQJP3N1i/DPJgcQr6AfoPdwSPryosbcNUDSrc9gkEXOFd2Cra4d0KyN7+u5BTdIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfL1/IA+4oAjeucUanIRvJ6gswRbVv3VEfPhby3l1LlyJhRb84cmw/J9n8ytOvv8q6tBNX6bncakmVLJUFDspPXw7683trhnDUBCA5mAAXWUMkxpHGBbK4RfnVZrsqCT6t+592C6HPc3qSL0/RDqv47t3RBLulSwKMSMy/mPKhcxqlK9VrhKvqQJ8zYHWboGbKfVxcb/Sc94BWWpMXNpdWzBdDo+gcYcCCfcKM+ZCr4n6olsDtQG+ChStBePv0DBIgWL90Ko70uQhCw7G2xYgH88IsHvJt9j1MbwSUf2vwKbW0DrDcupb1DHg44bGdRAhpOuDXbN2ccfJz0kgDRjKgU6UqYP7JT+ayuMNs22d4uF9Vuyvk3Yqpxx1rzWr3MshhIrEipgWx13F7yl0wYc4KNulQ0Bhe9GkCoFftySCOot2XMwiR2ZotT48yrAJo5K7ejIFx488yB7bdfOLaZSH4hXmVOqJIDd4gmxqeK6nihqv9UWtzvfwW8e33VpQrSdIk8PAu3EM2hDL78iIUPp9/kOv2TaV0ADT7/lJIEE0laXBLJ4h2KMwlpwOvknYGy/2g1j2gLWIeUo55+ik8/7nban+pp+AK490jRnzPbghmsOlBeQ0KxUBX2mA+eugyb3j5lb5Ta5Rjvw2l6nZqIrVKd4apq6/GQ9V05ws5wyxDze8g5wkmiwMI1tBPR6GlIP0IErmIfbiDP75jU7/vi1swqXcMq/hC5KFemrDmbD7YLBxw0tH1Uw+wc0JtMEcMa0IPP+mAhy5j9ffFBJsa1XlkdaiM81008YlYUzKB6aYNK3ItlrZtOc0Pq+BaJJH5G+hechg3ObniDoCoXFYZbOgjMkSc23+E/h7cR3APCjcx+wZGGJPhTIQCeznjFrbDGxVOzC0Vqg24jx9A4WjX97O
Hi Sebastien!
I'm facing another problem.
I would like to create a tetrahedral mesh from a polyhedral surface with
make_mesh_3 and refine_mesh_3. The model is a benzene with 6 C atoms and 6 H
atoms. Those atoms are disconnected balls in the input polyhedral surface
mesh (benzene.off).
However, by directly calling make_mesh_3, there will be missing components.
So I resort to another post:
http://cgal-discuss.949826.n4.nabble.com/make-mesh-3-with-features-initial-points-for-C3T3-td4661118.html
This pose tells that we need to set initial points as features to guide the
meshing process. So I modified the code with:
C3t3 c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria, features(domain),
no_lloyd(), no_odt(), no_perturb(), no_exude());
typedef C3t3::Triangulation::Point Weighted_point;
for(int i=0; i<atoms.size(); i+=3){
Weighted_point p(Weighted_point::Point(atoms[i], atoms[i+1],
atoms[i+2]));
Tr::Vertex_handle vh = c3t3.triangulation().insert(p);
c3t3.set_dimension(vh, 3);
}
CGAL::refine_mesh_3(c3t3, domain, criteria);
The idea is adding atom positions as initial points. But the code still
misses one component.
A minimal code is attached here with model file (benzene.off) and atoms file
(benzene.xyz). It should be easy to directly compile and execute.
Can you help dig out the problem?
Thank you so much!
Rundong
<nabble_a href="Archive.zip">Archive.zip
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] refine_mesh_3 compile error after successful compilation and run with make_mesh_3, rdzhao, 09/26/2019
- Re: [cgal-discuss] refine_mesh_3 compile error after successful compilation and run with make_mesh_3, Sebastien Loriot (GeometryFactory), 09/26/2019
- Re: [cgal-discuss] refine_mesh_3 compile error after successful compilation and run with make_mesh_3, rdzhao, 09/26/2019
- Re: [cgal-discuss] refine_mesh_3 compile error after successful compilation and run with make_mesh_3, rdzhao, 09/26/2019
- Re: [cgal-discuss] refine_mesh_3 compile error after successful compilation and run with make_mesh_3, rdzhao, 09/26/2019
- Re: [cgal-discuss] refine_mesh_3 compile error after successful compilation and run with make_mesh_3, Sebastien Loriot (GeometryFactory), 09/26/2019
Archive powered by MHonArc 2.6.18.