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