Subject: CGAL users discussion list
List archive
- From: "刘川" <>
- To: "cgal-discuss" <>
- Subject: Re: [cgal-discuss] How to compute SDF values upon vertices withCGAL
- Date: Tue, 17 May 2016 16:59:55 +0800
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=Pass
- Ironport-phdr: 9a23:99EsKRXczKSCkNklThwt0dgPcLTV8LGtZVwlr6E/grcLSJyIuqrYZxSPt8tkgFKBZ4jH8fUM07OQ6PCxHzZQqs7Y+Fk5M7VyFDY9wf0MmAIhBMPXQWbaF9XNKxIAIcJZSVV+9Gu6O0UGUOz3ZlnVv2HgpWVKQka3CwN5K6zPF5LIiIzvjqbpq8yVOVUD3GP1SIgxBSv1hD2ZjtMRj4pmJ/R54TryiVwMRd5rw3h1L0mYhRf265T41pdi9yNNp6BprJYYAu2pN5k+VqFSWTQ6L3gutoqsrgjGVQLJ530GU2xQnAAPGBnA9Bi9X5H/tWzxueN5nSWbJsbrVqtnZTP3paxkQRuthCYcPCMi6yuf3sd/haYerBO6rAFk2KbVZpuUPbxwZPWOU8kdQD8Lpj4bH3hEDdrhNNBXVbYpJuNRro27oVkT6xayGE+nArW8mXdzmnbq0PhigKwaGgbc0Vl4Eg==
Thank you for replying me.
Since I'm a beginner to CGAL, I don't really understand what does SkipPrimitiveFunctor mean and how to create or use it.
Could you please give me some more instructions?
Since I'm a beginner to CGAL, I don't really understand what does SkipPrimitiveFunctor mean and how to create or use it.
Could you please give me some more instructions?
------------------ Original ------------------
From: "Sebastien Loriot (GeometryFactory)"<>;
Date: Tue, May 17, 2016 04:11 PM
To: "cgal-discuss"<>;
Subject: Re: [cgal-discuss] How to compute SDF values upon vertices withCGAL
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
>
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss
- [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.