algorithmic modeling for Rhino
I've created a Brep and now I want to duplicate it and rotate the copy 180 degrees. I've figured out how to rotate the original, for example:
myBrep1.Rotate(90* (3.14 / 180), y_vector, pt)
However, I cannot figure out how to simply make a copy of "Brep1" called "Brep2" before rotating it. I tried the simple approach:
Dim Brep2 As Brep
Brep2 = Brep1
But the above code just makes Brep2 the same object as Brep1, and if Rotate Brep2 then obviously Brep1 also rotates. How do I duplicate or copy Brep1 into Brep2? This should be obvious but isn't.
Tags:
Brep2 = Brep1.DuplicateBrep()
http://www.rhino3d.com/5/rhinocommon/html/M_Rhino_Geometry_Brep_Dup...
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by