Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] 3D Mesh: How to use an image for edge_size

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] 3D Mesh: How to use an image for edge_size


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] 3D Mesh: How to use an image for edge_size
  • Date: Wed, 10 May 2017 09:01:25 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:xPSckBYQIdsO7D++E7wLaJf/LSx+4OfEezUN459isYplN5qZr829bnLW6fgltlLVR4KTs6sC0LuK9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQtFiT6ybL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjAk7m/XhMx+jKVYrhyvqRNwzIzbb52aOvdlYqPQf8kXSXZdUstfVyFMBJ63YYsVD+oGOOZVt4fxqUYQohSlHwasH//vyj5WiX/wwKY01eMhERvH3AwnA9IFrXDYotTrO6cVVOC60rXIzS/Dbv1Wwzjy9JTIchc7ofCMWL58f9faxE40FwPBiVWQs43lPzSJ1ugXtmib6/FtVe2qi2E9qgFxpiKjydsrionMn48YzE3P+yZhwIstO9G0VEp2bcSnHZZQrS2WKpV6T8A4T211vCs3xaUKtJy4cSQQ1pgqyB/SZ+aaf4WM7B/vTuScLDd+iXl4YrywnQyy/lKlyuDkVsm7zlJKri1dn9nJrH8N1hjT5tGJS/tn4kutwDiP2x3X5+xLO0w0mq3bK5kuwr40iJUfq1jMHijzmEnuja+WcFsr+vSw5uj5frnrooWQOox0hw3kL6gihM+yDf4lPgUKUGWX4eG826fi/U39TrVKlPo2kqzBvZDBIcQbobS5Aw5S0oY/8Rq/CjOm3c8XnXkCNl1FeRaHg5L1NFHJJfD0Fe2/jEi0kDd32/DGOaXsDYnCLnfZlLftZKty609HyAUv0NBf/IlUB6oaIPPzX0/xrMbXAgU4Mwyy2ebnCc9y2pkQWWKVUeelN/bZvlaMo+4uOOKRf5Q9uTDnKvFj6eS9o2U+nApXRqSj1IALaX2+VtBhOUSefTKsrdoGFGoWpBsQRef2j0eTEHQbM222WLg94S19DYaOAoLKR4Tri7uEinToVqZKb3xLXwjfWUzjcJ+JDq8B
  • Organization: GeometryFactory

On 05/02/2017 01:16 PM, Michael Bieri wrote:
Hi everybody,

I'm currently using CGAL to mesh a segmented image. I define the
criteria as follows:

Image_sizing_field cell_size_fct(elem_size_image);
Mesh_criteria criteria(facet_angle=30, facet_size=cell_size_fct,
facet_distance=cell_size_fct, cell_radius_edge_ratio=3,
cell_size=cell_size_fct);

I'm not quite sure whether it's ok to use the cell_size_fct also for
facet_size and facet_distance, but so far, it works for me. I'm open for
advices on that.

Now, the Problem: When I add 1D features basically with
"CGAL::polylines_to_protect" to protect the bounding box, I get very
nasty results. The mesh along the boundary gets very coarse, it seems
like no other points were allowed close to the boundary. I can fix the
problem by specifying edge_size to a lower, constant value. BUT as soon
as I try to use the Image_sizing_field cell_size_fct as edge_size, I get
a compile error:

In file included from /usr/local/include/CGAL/Mesh_criteria_3.h:32:
/usr/local/include/CGAL/Mesh_edge_criteria_3.h:63:38: error: no type named
'Point_3' in 'Image_sizing_field'
typename Sizing_field::Point_3,


Adding typedef Point Point_3; inside Image_sizing_field makes it compile.

Sebastien.


Is it not possible to use a Image_sizing_field as edge_size criteria? Or
how could I do this?

(You find the whole code attached.)

Best regards,
Michael







Archive powered by MHonArc 2.6.18.

Top of Page