Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] How to compute SDF values upon vertices with CGAL
- Date: Tue, 17 May 2016 10:11:30 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:yilPiRUgT3pUJ/vuaz2P9sDt0t7V8LGtZVwlr6E/grcLSJyIuqrYZhKBt8tkgFKBZ4jH8fUM07OQ6PCxHzZfqs/b7zgrS99laVwssY0uhQsuAcqIWwXQDcXBSGgEJvlET0Jv5HqhMEJYS47UblzWpWCuv3ZJQk2sfTR8Kum9IIPOlcP/j7n0oM2CJV8Xz2PnPvtbF1afk0b4joEum4xsK6I8mFPig0BjXKBo/15uPk+ZhB3m5829r9ZJ+iVUvO89pYYbCf2pN/dwcbsNBzsvNyU55dbgqALYZQqJ/HoVFGsMwTRSBA2Qpir3VJ7qrir3sKJZ3zObOtG+DZ85XjGv8716ZhbjlCAdJn9zuDXMjstqjaVH5heljxN6yo/QJoqSMawtLevmYdoGSD8ZDY5qXCtbD9bkYg==
- Organization: GeometryFactory
There is not official way to do it.
If you dig into CGAL/internal/Surface_mesh_segmentation/SDF_calculation.h
you'll see the function calculate_sdf_value_of_facet
that computes the centroid of the face and then call
calculate_sdf_value_of_point.
You'll need to provide a custom SkipPrimitiveFunctor so that
all faces incident to the vertex you consider are ignored
in the ray/segment-shooting
Sebastien.
On 05/17/2016 09:27 AM, 刘川 wrote:
Hi!
I'm using CGAL to compute sdf values of a 3D shape according to
sdf_values_example
<http://doc.cgal.org/latest/Surface_mesh_segmentation/Surface_mesh_segmentation_2sdf_values_example_8cpp-example.html>
The code show me how to compute the sdf value of each facet of the mesh.
But I want to get the sdf value on each vertex. Namely, the axis of the
cone is the opposite of the normal of a vertex.
I wonder if there is anyway to compute sdf on vertices rather than facets?
Thanks a lot!
Lau
- [cgal-discuss] How to compute SDF values upon vertices with CGAL, 刘川, 05/17/2016
- Re: [cgal-discuss] How to compute SDF values upon vertices with CGAL, Sebastien Loriot (GeometryFactory), 05/17/2016
- Re: [cgal-discuss] How to compute SDF values upon vertices with CGAL, Cyun Lau, 05/17/2016
- Re: [cgal-discuss] How to compute SDF values upon vertices withCGAL, 刘川, 05/17/2016
- Re: [cgal-discuss] How to compute SDF values upon vertices withCGAL, Sebastien Loriot (GeometryFactory), 05/17/2016
- Re: [cgal-discuss] How to compute SDF values upon vertices with CGAL, Sebastien Loriot (GeometryFactory), 05/17/2016
Archive powered by MHonArc 2.6.18.