Subject: CGAL users discussion list
List archive
- From: Jane Tournois <>
- To:
- Subject: Re: [cgal-discuss] Multi-domain mesh generation with sharp edges
- Date: Thu, 22 Aug 2019 12:02:09 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:MbpmQx2eYBHou8pZsmDT+DRfVm0co7zxezQtwd8ZseMWI/ad9pjvdHbS+e9qxAeQG9mCsbQd17ed6fqocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmSSxbalvIBi5rQjdudcajZV/Iast1xXFpWdFdf5Lzm1yP1KTmBj85sa0/JF99ilbpuws+c1dX6jkZqo0VbNXAigoPGAz/83rqALMTRCT6XsGU2UZiQRHDg7Y5xznRJjxsy/6tu1g2CmGOMD9UL45VSi+46ptVRTljjoMOTwk/2HNksF+kbxVoByhqRJ8zYDbbo6aO/hica3SZt4aWWlMU9xNWyBdDI6xbY0CBPcBM+ZCqIn9okMDox+kCgmqGuzk1yFGhnjr3a0g1eQhFgDG3Bc9FN8JsnTbttP1O7kIXeCpy6nI0C/Db/VR2Tf884jFaR8hru+LXbJ1b8XR1VMvFgPLjlqKtYPlIzSV1v4NsmSB8+VgUuevhnchpgpsrDavwcIshZPIhoIT0l3E8z92z50uKt28VkF3e8KrEJxVty2CK4R2TdktQ2VytCY90L0Gtoa3fCcUx5Qgwh7QdeCHc5KI4xLtTumePSt4hHV/eLO/nRq97U+gyuj6W8Kp01hKtjJIn9bNu3wXyhDf9siKRuF880u9wzqDyQ/e5+JcLUwqj6bXNp4szqQtmpccs0nPBDH6lFnygaKQa04q4PKn6/79bbXjvpKcN5F7igX5Mqk2nsGzG+E4Mg8MUmSB/OSzzrzj/UngTLVNk/02jrPVsJfEJcQbvKK5BRFa0po75xa+CTepzsgYkGEIIV9EYh6LkpTlNlHULP35EfuzmUqgnThoyvzeO73uGJTNLnzNkLf7erZ97lZRyAgpwtBZ+Z1YEK0BIPXuWk/rstzYCR45MxevzuboFtp90YYeVnyTAq+DMKLSv0WH6f4zI+mLfo8UuCzxJOQi5/7rlXM5g0MSfbG13ZsLb3C1BuhpI0qDbnrom9sODGYKvhEiQ+z3k12CSiVeZ22yXqI5/jE0EpiqDYbFRoC3gbyOxj23HpNMZjMONlfZGnjhc8CIWuwHdTmJCs5niD0NE7a7GKE70hT7lgb8xvJbKffO/CoZrtq31tFz6qvPkgwo8zt1FOyS3maIQn1uj20BTCMxxrE5qkt4nATQmZNkiuBVQIQAr8hCVR03YMaFk75KTuvqUweERe+nDU68S4//Uz48Sdc838UfbU92B9K4n1bI2C/4W+ZExYzOP4Q99+fn51a0Is98z3jc06x71gspT8xKOHG8l6B2/BTUHZ+PmEKcxf7zKPYsmRXV/WLG9lKg+UFVVAkqDfeUG3UYOQ3TpNX9o0TfU/mpF7RhNAZdm5aP
Hello,
if you want to mesh a multi-domain with features, you should use the `CGAL::Polyhedral_mesh_domain_with_features_3` [1], and can follow the example "Mesh_3/mesh_polyhedral_domain_with_features.cpp" [2].
If you have several polyhedra and want to create a domain from them, there is an undocumented constructor in Polyhedral_mesh_domain_with_features_3.h that you can use :
```
/**
* Constructor from a sequence of polyhedral surfaces, and a bounding
* polyhedral surface.
*
* @param InputPolyhedraPtrIterator must an iterator of a sequence of
* pointers to polyhedra
* @param bounding_polyhedron reference to the bounding surface
*/
template <typename InputPolyhedraPtrIterator>
Polyhedral_mesh_domain_with_features_3(InputPolyhedraPtrIterator begin,
InputPolyhedraPtrIterator end,
const Polyhedron& bounding_polyhedron,
CGAL::Random* p_rng = nullptr)
```
It is still a Polyhedral_mesh_domain_with_features_3 but is built from more than 1 polyhedral surface.
Then, you can use the automatic `detect_features()` or the API of `CGAL::Mesh_domain_with_polyline_features_3` to set your sharp edges before meshing.
Does it help?
Best regards,
Jane.
[1] https://doc.cgal.org/latest/Mesh_3/classCGAL_1_1Polyhedral__mesh__domain__with__features__3.html
[2] https://doc.cgal.org/latest/Mesh_3/Mesh_3_2mesh_polyhedral_domain_with_features_8cpp-example.html
[3] https://doc.cgal.org/latest/Mesh_3/classCGAL_1_1Mesh__domain__with__polyline__features__3.html
--
Jane Tournois, PhD
R&D Engineer at GeometryFactory
http://www.geometryfactory.com/
Le 20/08/2019 à 19:54, imperin a écrit :
Hello everybody,
Does anybody know how to make mesh generation for multiple domains from 3D
Polyhedral Domains with sharp edges. Is there an example of it?
Thanks a lot!
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Multi-domain mesh generation with sharp edges, imperin, 08/20/2019
- Re: [cgal-discuss] Multi-domain mesh generation with sharp edges, Jane Tournois, 08/22/2019
- Re: [cgal-discuss] Multi-domain mesh generation with sharp edges, imperin, 08/22/2019
- Re: [cgal-discuss] Multi-domain mesh generation with sharp edges, Jane Tournois, 08/23/2019
- Re: [cgal-discuss] Multi-domain mesh generation with sharp edges, imperin, 08/26/2019
- Re: [cgal-discuss] Multi-domain mesh generation with sharp edges, Jane Tournois, 08/26/2019
- Re: [cgal-discuss] Multi-domain mesh generation with sharp edges, Sebastien Loriot (GeometryFactory), 08/26/2019
- Re: [cgal-discuss] Multi-domain mesh generation with sharp edges, Jane Tournois, 08/26/2019
- Re: [cgal-discuss] Multi-domain mesh generation with sharp edges, imperin, 08/26/2019
- Re: [cgal-discuss] Multi-domain mesh generation with sharp edges, Jane Tournois, 08/23/2019
- Re: [cgal-discuss] Multi-domain mesh generation with sharp edges, imperin, 08/22/2019
- Re: [cgal-discuss] Multi-domain mesh generation with sharp edges, Jane Tournois, 08/22/2019
Archive powered by MHonArc 2.6.18.