Use model.component(<ctag>).geom(<tag>).create(<ftag>,"RemoveDetails") to automatically remove small details from the geometry. You can also add extra local virtual operations using the following syntax (in this example, adding an IgnoreEdges operation):
If the RemoveDetails operation is in the automatic state, use the .problems() syntax to retrieve information on warnings (if any). The problem list is cleared if you switch to the manual state.