Subject: CGAL users discussion list
List archive
- From: Iasonm <>
- To:
- Subject: [cgal-discuss] Fastest way of extracting a graph of a mesh's segments
- Date: Wed, 8 Nov 2017 08:01:49 -0700 (MST)
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
- Ironport-phdr: 9a23:a7vZEBD71tAMcbxfUzNsUyQJP3N1i/DPJgcQr6AfoPdwSP39r8bcNUDSrc9gkEXOFd2Crakb26yL6+jJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kubtmBDX0ynfUoufry0ScbuiJG82Om2vpHSeA5VnyGVYLVoLRzwox+CmNMRhN5DI702zB6B9mJRZ+NSyGVlDV2Wlhf4oMy3+cgwoGxrp/s9+psZAu3BdKMiQOkDVGwr
What is the fastest way of extracting a graph which connects the segments of
a (segmented) mesh after using the following code to extract the mesh
segments? All in all this graph would represent the adjacency of segments in
a mesh.
*Code I use to segment the mesh:*
std::cout << "Segmenting mesh.." << std::endl;
// create a property-map ean are you sure the edge sean are you sure the
// edge shared by two triangles is not duplicatehared by two triangles is
// not duplicatefor segment-id
m_segmentFaceMap =
m_M.add_property_map<face_descriptor, std::size_t>("f:sid").first;
;
segmentsComputed = true;
// segment the mesh using default parameters for number of levels, and
// smoothing lambda
// Any other scalar values can be used instead of using SDF values
computed
// using the CGAL function
std::size_t number_of_segments =
CGAL::segmentation_via_sdf_values(m_M, m_segmentFaceMap);
std::cout << "Number of segments: " << number_of_segments << std::endl;
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Fastest way of extracting a graph of a mesh's segments, Iasonm, 11/08/2017
Archive powered by MHonArc 2.6.18.