Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Mesh segmentation: Why is number_of_segments==number_of faces on any model?
Chronological Thread
- From: Iason Manolas <>
- To:
- Subject: Re: [cgal-discuss] Mesh segmentation: Why is number_of_segments==number_of faces on any model?
- Date: Mon, 21 Nov 2016 13:10:56 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:DpZphBRpkq0UQxGrgHNW6M826dpsv+yvbD5Q0YIujvd0So/mwa64ZhON2/xhgRfzUJnB7Loc0qyN4vumAzdLuMbJ8ChbNscTB1ld0YRetjdjKfDGIHWzFOTtYS0+EZYKf35e1Fb/D3JoHt3jbUbZuHy44G1aMBz+MQ1oOra9QdaK3Izkn9204IDZNgVUmCKmM/Q1NwSztQyXt88MgIIkJLx20QrMunIPeuJYwiRjKluX2hr9/cyt54UwzyMFsP0o84tMUL7xYr8jZb1eFjUvdW4vt+PxshyWbAKU4X1Ud2wQlR5BGECR9QjmWZP8tCbSue902S3cNsrzG+NnEQ++5rtmHUe7wBwMMCQ0pTna
Unfortunately since my code deals with 3d models there are some dependencies and the code is not that small. I tried to make it as short as possible though.
Except cgal,gmp,boost I use assimp.Regards,
Iason
On 21 November 2016 at 10:45, Sebastien Loriot (GeometryFactory) <> wrote:
Could you share a minimal example that we can run and that would
show the pb?
Thanks,
Sebastien.--
On 11/18/2016 12:41 PM, Iason Manolas wrote:
Hello ,
I am trying to segment a polyhedron using the following code:
void meshSegmentation()
{
std::cout<<"Segmenting Mesh.."<<std::endl;
using
Facet_int_map=std::map<CGALPolyhedron::Facet_const_handle,std::size_t>;
Facet_int_map internal_segment_map;
boost::associative_property_map<Facet_int_map>
segment_property_map(internal_segment_map);
std::size_t
number_of_segments=CGAL::segmentation_via_sdf_values(P,segment_property_map);
std::cout<<"Number of segments: "<<number_of_segments<<std::endl;
std::cout<<"Segmentation finished."<<std::endl;
}
(I have previously checked that the P.is_valid()==1)
Why is the number of segments always equal to the number of faces?
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] Mesh segmentation: Why is number_of_segments==number_of faces on any model?, Iason Manolas, 11/18/2016
- Re: [cgal-discuss] Mesh segmentation: Why is number_of_segments==number_of faces on any model?, Sebastien Loriot (GeometryFactory), 11/21/2016
- Re: [cgal-discuss] Mesh segmentation: Why is number_of_segments==number_of faces on any model?, Iason Manolas, 11/21/2016
- Re: [cgal-discuss] Mesh segmentation: Why is number_of_segments==number_of faces on any model?, Sebastien Loriot (GeometryFactory), 11/21/2016
Archive powered by MHonArc 2.6.18.