Grasshopper

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.

 

 

Views: 550

Replies to This Discussion

Thanks! That was really obvious.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service