Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (CGAL/GeometryFactory)" <>
- To:
- Cc: Kim Donghyeon <>
- Subject: Re: [cgal-discuss] How to smooth surface mesh of volume mesh from 3d image
- Date: Tue, 20 Feb 2018 16:00:37 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:So+oIBOsexsK9d5W23sl6mtUPXoX/o7sNwtQ0KIMzox0I/v/rarrMEGX3/hxlliBBdydt6ofzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlGiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0vRz+s87lkRwPpiCcfNj427mfXitBrjKlGpB6tvgFzz5LIbI2QMvd1Y6HTcs4ARWdZXshfSTFPDI2/YYsIDeUBM+lXoYbhqFYVsRu+HBOhCP/zxjNUm3P727Ax3eQ7EQHB2QwtB9wCvnLOo9XoLqcdT+a1zLXVxjvfbvNW3yny55LVchs8pf2BQ7N+fNbXx0U0Fg3KkFKQqYn7MDOJzOQMs2iV4PB8WuKzjG4nsQFwrj2hyswxjYTJgpgayk3e9SpnxoY1Oce0SFR6Yd6iDpRfrTyaOpBqTcMtWW5ovDw2yrocuZ60ZSUHzoksyRDYa/yCaYeI4xTjWf6eITd/g3Jld7a/iAio/Ue8ze38U9G430pFriVfltnArHcN1wbc6sSfRfty4ECh2TOR2ADP8OFFIU40mrDHJJ49xb4wjJoSvV7fES/xnUX7irKdeEY8+uWw5OnqY6/qqoKAO4J0kA3zPbgiltaiDek3MQUCR3WX9OCy2bH54EH1XLpHguc4n6XEqpzWONgXqrO/DgRIyIgs8Qy/AC2j0NkAnXkIMlZFeBWfgoXpIV3OJff4Aeq9jlmiijtrwurJPrzlApnUKXjDjavhcax6605CyAo/19Zf6IxICr0ZIfLzXFH+tMDAAxI2MgG42fvrBMl9248EVm+DHrWVPL7dvFKL/u4vJvODZI4RuDbzMfgl4PvugGc9mVAHYKmpx4UYaHakHvh8OUWZYHzsjckbHmcXpQcxUOPqh0eGUTJJYHayRa086ikhCI26FYfDWpytgLuZ0SinEZ1ZfGRGBkmRHnfpbIWLR+oMaDmJIsJ6iTwFVb2hS5c72h20tQ/6zaBnLuvO9SECu5Ljzos92+qGnh478Xl4Dt+WznqWZ2ByhGIBATEsj45lpkkogHOKzLJ1heAQL91V6vpUGkcRGrf4iMN3DNX/RhjQUN6CVFG8U5TsSWU1R88rztkSJVx8HdirkzjI0COuRbgPmOrYV9QP7qvA0i2pdI5GwHHc2fxk1gF+G5odBSidnqd6sjPrKcvMmkSdmbytcP1EjiXC/WPFynCB7hgBDFxAFJ7dVHVaXXP46Mzj7xqaHbShALBhNRFOm5bbd/l6L+bxhFADf8/NfdTTZ2XrxTXtQxOPn+zXKo/jemFY2zjBTk8ak0YV8GrUbQU=
- Organization: GeometryFactory
Le Tuesday, February 20, 2018 10:53:42 AM CET Kim Donghyeon a écrit :
> Hi, I have a question about CGAL volume meshing.
>
> Iâm working on generating head mesh from 3d medical image (already
> segemented).
> It is exactly same as brain mesh picture on 3D Mesh Generation user manual.
> (https://doc.cgal.org/latest/Mesh_3/index.html)
> My problem is, I could generate volume mesh, but thr surface of each label
> is very rough (not smooth)
> The resolution of segmented image is 256 * 256 * 256 (1mm * 1mm * 1mm). And
> also, I compared the result of Cleaver2 mesher and cgal mesher.
> I understand it could have different result. But cgal have rough surface
> mesh compared with the result of cleaver2.
> I think I missused volume mesh paramemter.
>
> (my input data is:
> https://drive.google.com/file/d/1DUt-gSZ2uM8Rzv_9tfb80aWOmPLXbPl0/view?usp
> =sharing )
> My code is based on âMesh_3/mesh_3D_image_variable_size.cppâ and used
>
> double facet_angle = 30;
> double facet_size = 2;
> double facet_distance = 2;
> Sizing_field cell_radius_edge_ratio(1.5);
>
> To solve it, I already changed facet_size from 0.00001 to 2, but it does
> not affect the result (I did same value on facet_distance).
> Is it a normal situiation? and could you give an advice for me?
Hi Kim,
In the example code, replace the line:
Mesh_domain domain(image);
with
Mesh_domain domain(image, 1e-6);
The default value for that second parameter is 1e-3, and that is too low for
precise images like the one you use. That parameter sets the precision of the
bissection algorithm used to compute intersections with the implicit surfaces
of the image and query segments. I think the image
> Also I just want to know the detailed parameter of the brain mesh which is
> on the top of 3D Mesh Generation document and chest mesh which figure
> number is 54.22
That image was created using the CGAL 3D demo (the code is in demo/
Polyhedron/), and I think the Mesh_3 uses 1e-6 for that parameter.
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] How to smooth surface mesh of volume mesh from 3d image, Kim Donghyeon, 02/20/2018
- Re: [cgal-discuss] How to smooth surface mesh of volume mesh from 3d image, Laurent Rineau (CGAL/GeometryFactory), 02/20/2018
- RE: [cgal-discuss] How to smooth surface mesh of volume mesh from 3d image, Kim Donghyeon, 02/27/2018
- Re: [cgal-discuss] How to smooth surface mesh of volume mesh from 3d image, Laurent Rineau (CGAL/GeometryFactory), 02/20/2018
Archive powered by MHonArc 2.6.18.