addFace
Fill void regions in 2-D and split cells in 3-D geometry
Description
adds a new face to the geometry h
= addFace(g
,edges
)g
. The specified edges must form a
closed contour. For a 2-D geometry, adding a new face lets you fill voids in the geometry.
For a 3-D geometry, adding a new face lets you split one cell into multiple cells.
You can add several new faces simultaneously by specifying their contours in a cell array. Each contour in the cell array must be unique.
Note
New faces modify a geometry, but they do not modify the mesh. After modifying a
geometry, always call generateMesh
to ensure a proper mesh
association with the new geometry.
Examples
Input Arguments
Output Arguments
Tips
addFace
errors when the specified contour defines an already existing face.addFace
always modifies the original geometryg
.