Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Detect and split multiple parts contained in one mesh

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Detect and split multiple parts contained in one mesh


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Detect and split multiple parts contained in one mesh
  • Date: Tue, 15 May 2018 10:02:10 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:2vviZxDpxPe1WIvFvYB/UyQJP3N1i/DPJgcQr6AfoPdwSPT4rsbcNUDSrc9gkEXOFd2Cra4c0KyO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglUijexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykCoJKj43/n/ZisJzgqxUrh2uqB5jzIDbe4yVKPhzc7nBcd8GS2dMXsBcXDFBDIOmaIsPCvIMMehFoYbjvFQBtwC+BRWtBOzxzD9Dm3n43aog0+QgFgHGwBErE9YPvnvKq9X1MbkdUfyvzKjIzTvMde9Z2Sv66IjSchEtpP+AVq93fMrKzUkvEBnFjlSXqYz5JT+V0+ANvnOU7+plT+2vimonpxttrTiow8chk4/EjZ8bxFDD8CV22oc1JdugRUFnbt6rCp9QuzudN4tsTcMvRXxjtiUiyrAeu5O2czIGxIk5yxPfcfCKcJaE7gjsWeuROTt1hnFodKihixu98EWs0PDwW8263VpQrCdIkt/BvW0X2RPJ8MiIUP5981+h2TmR0wDT7flJIUUumqraL54t27Axlp8PvUjaEC/7l0X7gLWZdkUj/eio5ODnbav8qpCAMI90jxnyMqUomsOhHeQ1KgoDUmeB9eihyrHu/Vf1TbZUgvEsnaTUsIjWJcEBqa64Bw9V3Jwj6xG6Dzq+y9QYmX4HLEhEeBKAk4jlIVTOIPTjAPewhlSjijZrx/TcMrL9BZXNK2DPkK39crZl905c1A0zwMhD6JJbEL4BJOv/VVLwtNzDEhA5Lhe0w/38BdVm1oIeXHqPDbWDPKPTt1+I/OMvLPOWaI8bojauY8QisvXhhHt8lV4GdrSyxrMWbmq5F7JoORa3e33p1506HG0DpRY/QeqirFqYUDlPLzadUqU56y0hGayvBpvEXJHsyvTVxyO8BJxReiZDDniDFH7pc8OPXPJaO3HaGdNojjFRDevpcIQmzxz77FarmYoiFfLd/2gjjbym0dF04+PJkhRrrG57Cs2c1yeGSGQmxzpUFQ9z57h2pAlG8nnGybJx2qUKGtla5vcPWQA/Z8aFkr5KTuvqUweERe+nDVarRtL8XGM0R9M1hsALOwNzR4jkgRfE0C6nRbQSku7TCQ==

See also this example using copy_face_graph() for how to copy each
component into a new mesh:

https://doc.cgal.org/latest/Surface_mesh_segmentation/Surface_mesh_segmentation_2extract_segmentation_into_mesh_example_8cpp-example.html

Sebastien.

On 05/15/2018 09:56 AM, Sebastien Loriot (GeometryFactory) wrote:
See the following example:

https://doc.cgal.org/latest/BGL/Polygon_mesh_processing_2face_filtered_graph_example_8cpp-example.html

Sebastien.

On 05/15/2018 08:52 AM, Grimm, Raphael (IAR) wrote:
Hi,

i am new to CGAL and have a question.

I have a reconstructed mesh.

This mesh may consist of multiple unconnected parts.

Sometimes these parts are single points or triangles and sometimes they are complete meshes.

Is there a fast way to detect this and split the mesh into multiple meshes each containing one part?


I am grateful for all hints.

Best Regards

Raphael





Archive powered by MHonArc 2.6.18.

Top of Page