algorithmic modeling for Rhino
I've managed to do an implementation of Catmull-Rom splines using Bezier Spans, even though I don't completly understand the math involved.
My objective was to be able to constrain the curve to avoid the overshooting that the native interpolate occasionally does. I was able to constrain the max distance from the curve to the control polygon controlling the length of the vectors.
The problem is I don't really know how to resolve the start and end segments. I put together a hack but I'm a bit unsure about it.
Also I would like some critique on the definition itself.
Tags:
BTW: Interesting thread where the Master talks and explains things:
https://bytes.com/topic/c-sharp/answers/583291-difference-between-p...
You've just sent me on a reading spiral of c# stuff by Jon Skeet...
Heavy stuff.
Ok I think I got it - if I declare the variables as public, I can just use them in the methods without having to pass them.
Thanks for all the tips. Still a lot to learn...
I'm probably missing something but wouldn't a while loop instead of recursion do the same thing?
I can't be sure because of the random nature of the algorithm, but it seems to be working without recursion...
Recursion is very frustrating, if you do something wrong you risk an endless loop... Anyway, I've done an interesting recursive thing, used your tips. Check it out:
Recursion is like riding a superbike: avoid if there's some issue with the brakes (or you like hospital food/mortuary).
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