mergeCells
Description
merges the cells identified by h = mergeCells(g,cellIDs)cellIDs for the 3-D geometry
g by removing their shared faces. mergeCells
renumbers cells, faces, edges, and vertices in the resulting geometry. The cell IDs of the
resulting geometry start with 1 and end with the number of cells after merging. Because the
function removes shared faces, it also removes edges and vertices belonging only to these
faces, and decreases the IDs of all subsequent faces, edges, and vertices.
Examples
Input Arguments
Output Arguments
Tips
Although
mergeCellsremoves shared faces of the merged cells, it does not merge faces of the merged cell. So, the resulting geometry can have extraneous faces. For example, if you merge two stacked cubes,mergeCellsremoves the face between the cubes, but each side of the merged cell consists of two faces, not one face, for a total of 10 faces in the merged geometry.Merging modifies a geometry, but it does not modify the mesh. After merging cells, call
generateMeshfor a correct mesh association with the new geometry.
Version History
Introduced in R2023bSee Also
Functions
deleteCell|findCell|addCell|addFace|addVertex|addVoid|generateMesh|union




