Unshare Edge from Solid Brep

Hey everyone

I’m currently struggling a bit with the following problem.
edge_shared_flange.gh (26.5 KB)

I have the following Brep

I have this Brep (sheet Brep). For later post-processing, it’s important that the corner edge is not shared by the two flanges.

Right now, when I analyze it, I can see that the edge is associated with the wrong faces (it’s being shared where it shouldn’t be).

Does anyone have an idea how I could modify the Brep so I end up with something like this (where the corner edge is separated the way I need)?

Thanks!

I think one way is to separate it actually, “within tolerance” so it’s practically touching. For example, if your object is the size of a big table, leave a 0.5mm gap there.

Or you can make those as two discrete Brep disjointed from the base plate.

@Will_Wang thanks for your input!

I thought about that. In this simple case that would probably work. Since i do a fair bit of of geometry classification on these breps so i would probably get problems further down the line…

The best would be if i somehow could modify which edges are shared between certain faces.

i see. you can try the UnjoinEdges()method of Brep on edge 3 and 25 in your file.

then rejoin the resultant “naked edges” on those correct pairs of faces (long face + short end face)

Perfect i tried this before but maybe i did not do it correctly. Since i was not able to have engough controll regarding the edges parent faces. But ill give it today another shot!

Thank you for all the inputs.

yeah managing the edge indices and knowing which pairs to rejoin may be tough programmatically

Yea, I realized that… I found a workaround that I can have the edges still merged but still differentiate between them so that they are part of separate flanges.

Thanks for your inputs