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: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Mesh segmentation: Why is number_of_segments==number_of faces on any model?
- Date: Mon, 21 Nov 2016 09:45:38 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:kMDoXRzkZGMUgFvXCy+O+j09IxM/srCxBDY+r6Qd0eoWIJqq85mqBkHD//Il1AaPBtSAragewLCL4+igATVGusnR9ihaMdRlbFwst4Y/p0QYGsmLCEn2frbBThcRO4B8bmJj5GyxKkNPGczzNBX4q3y26iMOSF2kbVImbre9JomHhMu+06W++obYfh5TrDu7e7J7ahus/ivLscxDy7BvIK8q1hrEpDNsfP5Xwn8gZX2emBPx+t2h0pdo7yNKqrNrv5pbVaLgfqMkC7lcJDsjOmExosbssE+QHkO0+nIAXzBOwVJzCA/f4USiUw==
- Organization: GeometryFactory
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?
- [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.