model.component(<ctag>).geom(<tag>).defeaturing("ReplaceFaces").delete(<ftag>) creates a
ReplaceFaces 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 ReplaceFaces feature using the standard
create method.
The faces in the property input are deleted from their objects. The resulting object is healed so that a solid object is obtained. If heal is cap, a new face is formed based on the surrounding edges of each wound. If heal is
extend, the surrounding faces of each wound are grown or shrunk to heal the wound.
When you replacing faces that form through holes, set the throughhole property to
on to indicate that the two wounds from where the hole entered and exited the geometry are to be healed independently instead of as a single wound. If
throughhole is
off, the wound would be healed with a single new face that would just recreate the hole.
The following example imports the file defeaturing_demo_2.mphbin, and removes a hole from the geometry model.