algorithmic modeling for Rhino
Hi David,
Could you explain a bit more why you lowered the whole graph by pi/2? Wouldn't 0, pi, and 2*pi angles be sufficient solutions? Or due to the interpolation we wouldn't have intersections at the two limits? I'm confused here.
Thanks for your help!
b
Hi,
you can use a divide and conquer algorithm similar to what I used here and here.
1. You can use David's method up to Step 3. for a moderate number of points (say 20-100 following the complexity of your curve) and work on each subcurve separately.
2. Each time you identify a possible candidate (at Step 4. in David's post, that would mean that at one end you have a positive angle, and at the other you have a negative angle, zero must be somewhere between these values) you can split the curve in half and look for the half where the point is the most likely to be and apply this process iteratively.
The advantage of this kind of method is that you can set arbitrarely a precision, and you explore less dead ends. With a uniform subdivision, if you need N steps to reach a certain precision, you will need here log(N), which is the best you can do.
Off course this method depends on the initial number of subcurves, and you have to give enough input points in the first place.
Best,
Romain
Excellent!!! thanks!! that is what I was looking for!
Hello Everyone
I've made this definition starting from David's. It can be used to find 45 degrees Overhangs for 3D printing.
Hope you'll find it useful :)
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