DeleteSliverFaces
Find and delete sliver faces in CAD objects.
Syntax
model.component(<ctag>).geom(gname).feature().create(<ftag>,"DeleteSliverFaces");
model.component(<ctag>).geom(<tag>).feature(<ftag>).selection(property);
model.component(<ctag>).geom(<tag>).feature(<ftag>).set(property,<value>);
model.component(<ctag>).geom(<tag>).feature(<ftag>).getType(property);
model.component(<ctag>).geom(<tag>).feature(<ftag>).find();
model.component(<ctag>).geom(<tag>).feature(<ftag>).detail();
 
model.component(<ctag>).geom(<tag>).defeaturing("SliverFaces").selection(property);
model.component(<ctag>).geom(<tag>).defeaturing("SliverFaces").set(property,<value>);
model.component(<ctag>).geom(<tag>).defeaturing("SliverFaces").find();
model.component(<ctag>).geom(<tag>).defeaturing("SliverFaces").detail();
model.component(<ctag>).geom(<tag>).defeaturing("SliverFaces").delete(<ftag>);
model.component(<ctag>).geom(<tag>).defeaturing("SliverFaces").deleteAll(<ftag>);
Description
model.component(<ctag>).geom(<tag>).defeaturing("SliverFaces").delete(<ftag>) creates a DeleteSliverFaces 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.
model.component(<ctag>).geom(<tag>).defeaturing("SliverFaces").deleteAll(<ftag>) works as the delete method, but the property delete is set to all.
It is also possible to create a DeleteSliverFaces feature using the standard create method. The following properties are available.
all | selected
on | off
all | obj | dom | bnd | edg | pnt | off
Show selections of resulting objects in physics, materials, and so on, or in part instances. obj is not available in a component’s geometry. dom, bnd, and edg are not available in all features.
Sliver faces are narrow but long faces with large aspect ratio, which usually give rise to extremely fine local meshes in their vicinity.
model.component(<ctag>).geom(<tag>).feature(<ftag>).find() searches the input objects for faces with width 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("SliverFaces") have the corresponding functionality for the defeaturing tool.
Only faces that can be deleted without invalidating the object are deleted. If a face was not possible to delete, a warning message is given.
Compatibility
The following property is no longer supported:
stx | ftx | ctx | ptx | status
Example
The following example imports the geometry model from the file defeaturing_demo_5.x_b, finds sliver faces narrower than 2·103, and deletes the first of these.
Model model = ModelUtil.create("Model1");
model.component.create("comp1");
model.component("comp1").geom().create("geom1",3);
model.component("comp1").geom("geom1").feature().create("imp1","Import");
model.component("comp1").geom("geom1").feature("imp1").set("filename", "defeaturing_demo_5.x_b");
model.component("comp1").geom("geom1").runAll();
model.component("comp1").geom("geom1").feature().create("dsl1","DeleteSliverFaces");
model.component("comp1").geom("geom1").feature("dsl1").selection("input").set("imp1");
model.component("comp1").geom("geom1").feature("dsl1").set("entsize",2e-3);
model.component("comp1").geom("geom1").feature("dsl1").find();
model.component("comp1").geom("geom1").feature("dsl1").detail().setGroup(1);
model.component("comp1").geom("geom1").runAll();
See Also
ReplaceFaces, DeleteSmallFaces