model.component(<ctag>).geom(<tag>).defeaturing("SmallFaces").delete(<ftag>) creates a
DeleteSmallFaces 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 a DeleteSmallFaces feature using the standard
create method. The following properties are available.
model.component(<ctag>).geom(<tag>).feature(<ftag>).find() searches the input objects for faces with size less than
entsize.
model.component(<ctag>).geom(<tag>).feature(<ftag>).detail() returns a selection object where you can select a subset of the faces found.
The find and
detail methods of
model.component(<ctag>).geom(<tag>).defeaturing("SmallFaces") have the corresponding functionality for the defeaturing tool.
The following example imports the geometry model from the file defeaturing_demo_6.x_b, finds sliver faces narrower than 10
−3, and deletes the first of these.