RhinoCommon Replace Edge

I would like to remove a trimmed edge from a brep and replace it with a straight line in UV space. I know how to do it in rhino, “ReplaceEdge Mode=ReplaceWithLine”, but I cant figure out how to do the same in RhinoCommon. Does anyone know how this could be done? Can anyone point me in the right direction?

Best,
Nick

Hi @Nick_Drian,

There is quite a bit to this, more than I can describe in a reply without just writing the whole thing.

I can probably add something to RhinoCommon if needed.

This isn’t a commonly used command. I’m curious what you’re doing and why you need to do something like this.

More info as to what you are doing, and why (perhaps more important than what), is always helpful.

Thanks,

– Dale

1 Like

I would like functionality like replace edge in order to improve some hole patching software that I am working on. My approach is to use a combination of Untrimming (Replace Edge), and Patching (XNurbs/Patch) in order to cleanly close arbitrary holes with as seamless continuity as possible.

It would be great If Replace Edge were exposed to RhinoCommon. Otherwise, I will have to implement something similar myself. Even if Replace Edge were added to RhinoCommon, I think it would be very useful to have an example of how to change an edges trims, as I have not found good examples of how to do this. If you know of any good brep editing examples for the purpose of becoming more familiar with directly interacting with the brep data structure, those would be great to know about.

Please let me know if you have any other questions, and thanks for looking into this :slight_smile:

I’ve logged the request.

https://mcneel.myjetbrains.com/youtrack/issue/RH-86499

Thanks,

– Dale

1 Like