model.component(<ctag>).geom(<tag>).defeaturing("Holes").delete(<ftag>) creates a
DeleteHoles feature tagged
<ftag> with the specified properties. The property
delete is set to
selected. 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 the DeleteHoles feature using the standard
create method. The following properties are available.
model.component(<ctag>).geom(<tag>).feature(<ftag>).find() searches the input objects for holes with radius less than
entsize.
model.component(<ctag>).geom(<tag>).feature(<ftag>).detail() returns a selection object where you can select a subset of the holes found.
The find and
detail methods of
model.component(<ctag>).geom(<tag>).defeaturing("Holes") have the corresponding functionality for the defeaturing tool.
The following example imports the CAD object in the COMSOL Multiphysics geometry file defeaturing_demo_3.mphbin and finds all holes with radius less than 4·10
−2. The first four of these holes are deleted.