Move brep edge with RhinoCommon

I have some faces from a brep that i can extract either as surfaces or breps. I am assuming I want to extract them as single-faced breps for this operation.

Is there a nice way to move individual brep edges (similar to MoveEdge)? Can’t see a simple solution in the documentation. as shown here; even better if you can direction-constrain it:

I’m working in python but i can grok a c# solution

Hi @S_L,

See if this is helpful.

Brep.TransformComponent

– Dale

1 Like

Looks promising. Do you have a reference somewhere explaining how I’d go from a single BrepEdge to the expected IEnumerable[ComponentIndex] in IronPython? I’m a little mixed up on how collections work.

I see this, but I’m not too clear on how to use it: https://developer.rhino3d.com/api/RhinoCommon/html/T_Rhino_Geometry_ComponentIndex.htm

Hi @S_L,

Here is a cheap sample you can try:

SampleMoveBrepEdge.py

– Dale

1 Like