model.component(<ctag>).geom(<tag>).defeaturing("DetachFaces").delete(<ftag>) creates a
DetachFaces feature tagged
<ftag> with the specified properties. If the feature can be built, it is inserted in the geometry sequence after the current feature; otherwise, the feature is discarded.
It is also possible to create a DetachFaces feature using the standard
create method.
The faces in the property input are detached from their
parent object. A new solid, the
child object, are formed from the detached faces. The output objects are the healed parent and child objects.
The property healparent determines how the parent object is healed to form a new solid after detaching the faces. The value
fill means that a new face is formed based on the surrounding edges of each wound. The value
patch means that the surrounding faces of each wound are grown or shrunk.
The property healchild determines how the child solid is constructed from the detached faces. The value
fill means that a new face is formed based on the surrounding edges of each wound. The value
patchchild means that the detached faces are grown or shrunk to form a solid. The value
patchparent means that the parent faces surrounding the detached faces are grown or shrunk to form a solid together with the detached faces.
The following example imports the COMSOL Multiphysics geometry file defeaturing_demo_2.mphbin and detaches a hole defined by a set of faces: