fill void regions in 2-pg电子麻将胡了
fill void regions in 2-d and split cells in 3-d geometry
since r2020a
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
after modifying a geometry, always call generatemesh to ensure a
proper mesh association with the new geometry.
examples
input arguments
output arguments
tips
addfaceerrors when the specified contour defines an already existing face.if the original geometry
gis adiscretegeometryoranalyticgeometryobject,addfacemodifies the original geometryg.if the original geometry
gis anfegeometryobject, and you want to replace it with the modified geometry, assign the output to the original geometry, for example,g = addface(g,[1 3 4 7]).





