Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] How to compute SDF values upon vertices withCGAL
- Date: Tue, 17 May 2016 11:17:25 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:xE6Q/xKKGrHiVlFz+NmcpTZWNBhigK39O0sv0rFitYgVK/vxwZ3uMQTl6Ol3ixeRBMOAu6MC0bqd6vmocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC3oLth6vrotX6WEZhunmUWftKNhK4rAHc5IE9oLBJDeIP8CbPuWZCYO9MxGlldhq5lhf44dqsrtY4q3wD86FpyshbTK+vf7gkVacKS3M9ImUt7YvqswPCRE2B/DwHQ2AOm11JBQbCqxr1V5O0virhvfdmw3qmOpj9QrkwHDij9Kx2UwTAiSEdNjd//nuEpNZ3ifcRmx+rrgdjwoPSKKWSLvt5YuudUt4dQGddRNd/XiddBZmtLsFHW/EFOvxZqJW7ol8moh63BA3qD+TqnGwbzkTq1LE3hrxyWTrN2xYtSooD
- Organization: GeometryFactory
It prevents the AABB-tree from selection a face as closest (the centroid
of a face being close to that face).
See the class definition at the top of the file for more details.
Sebastien.
On 05/17/2016 10:59 AM, 刘川 wrote:
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?
------------------ 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
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
>
--
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.