Selection of edges, vertex, faces of solid in shaper TUI

Hi,

there are several ways to select sub-shapes in SHAPER. In the script test_fillet.py (6,3 Ko), I show:

  1. selection by naming. It is the internal name of the sub-shapes in SHAPER to be able to select them in a stable way. This name can hardly be guessed. A manual selection in the graphic interface and python dump allows to get these names.

  2. guess the internal names from the selected names, if it can be :wink:

  3. select all the edges of a feature’s result, with all-in- prefix + the name of the feature. It might select more edges than needed (but in this case it works)

  4. selection by coordinates. This has to be the coordinates of a point on the sub-shape. Either you know them (because you have built your model), or you can get them by dump by coordinates available via the menu Part> Dump. It is like GetEdgeNearPoint, GetFaceNearPoint, GetBlockNearPoint in geompy.

  5. selection by filter (like for group’s creation). In this case, I used the filter FeatureEdges to select all the edges at the intersection of the spheres (not continuous faces)

  6. selection by the filter EdgeSize to select the edges in a range of sizes. You might use other filters depending on your use case.

Best regards,

Christophe