Interactively select faces of a brep

Is there any component in some package that could allow to interactively select some faces from a brep?

RATIONALE
I’m writing a gh script that computes some quantities from a single brep. This brep is normally imported from a STEP file as a single monolithic closed surface polysurface.

Along the process, I need to divide the faces/surfaces of the original brep in 2 types. There is absolutely no way to understand this from the model, so the only way would be to ask the user to select them.

I would like to avoid something like asking the user to explode the original model, move the faces to different layers and then import them in gh as separate surfaces. I would prefer something similar to ask the user “click on the surfaces of type X” and then work from there.

Do you have any suggestion on how to achieve this?

You can deconstruct the model in Grasshopper and use dots to display the face indeces.

The user could then enter the numbers in Grasshopper.

An other way would be to place a point close to the face in Rhino and find the closest point in Grasshopper and then find out on which face the closest point lies…

There are many ways to do this.

I like the idea of numbering the faces and asking the user to input the indexes in a panel. Easy to explain, easy to implement and the result is fairly neat.

Thanks for the suggestion

1 Like