algorithmic modeling for Rhino
Tuan's right...doing cylinders by math is probably the easiest. But if you have less regular surfaces, you can use a VB script. Just specify "x" in your input as a surface.
Private Sub RunScript(ByVal x As Surface, ByVal y As Object, ByRef A As Object)
Dim unroll_srf As New Rhino.Geometry.Unroller(x)
Dim crv As Curve() = Nothing
Dim pt As Point3d() = Nothing
Dim txt As TextDot() = Nothing
A = unroll_srf.PerformUnroll(crv, pt, txt)
End Sub
David,
I have created the VB component, but where does it output the unrolled geometry?
This is my first time playing with this feature. Looking at it again, it seems that running the unroller with your pipes input as breps works better. It takes each element you put into it and then unrolls it to the world xy plane. It's pretty straightforward to reorient the unrolled surfaces to new planes. I've attached a couple files that do the trick.
One thing...I did this in Rhino 5.0...just now checked to see if it works in 4.0 and it doesn't appear that the Rhino.Geometry.Unroller is available there. The 5.0 beta is worth getting, anyway!
I'm going to see bale downloading 5 today.
Another thing I was trying to work out was a way to "select curves on surface to unroll" like the Rhino command allows you to do.
Pieter,
Thank you very much, it unrolls my pipes, however, something goes wrong. The pipes are 1" diameter which would produce a circumference of 3.14" but the unrolled surface is 4"... Any ideas on what might be happening?
Thanks again for your reply.
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