ConnectedMeshComponents

ConnectedMeshComponents[mr]

gives a list {c1,c2,} of disjoint path connected meshed regions.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Separate the mesh for disjoint circles:

Separate the pieces for a boundary representation with two components:

Separate the connected components:

Scope  (6)

Connected mesh components in 1D:

The result is a list of MeshRegion:

Connected lines:

Connected mesh components of a 1D BoundaryMeshRegion:

The result is a list of BoundaryMeshRegion:

Separate the mesh for disjoint disks:

Separate nested components to single outer-inner pairs:

Mixed dimensions:

Properties & Relations  (1)

All components of a VoronoiMesh, DelaunayMesh, and ConvexHullMesh are connected:

Introduced in 2014
 (10.0)