algorithmic modeling for Rhino
Hi,
I am currently working on a Grasshopper script to section a shape on the y and Z planes. I have gotten all the way to making brep curves of the sections in both planes. I am making an offset, which will allow me to make a surface. When I put the offset function into the script it creates offsets in the Z plane with no problem, but I run into issues with the Y plane. It creates offsets inside the original brep curves for 2,3,4, and 6 which is what I want. However for some reason the offsets for the 0,1 and 5 curves are outside the original brep curves. I have tried grafting the offset, which didn't help. I also tried to change the offset distance from a negative to a positive, which only reverses the problem to the other curves. I have attaches a picture for reference, the green lines are the offset curves and the red are the original breb curves.
Thanks for any help you can give me!
Tags:
Hello Kyle,
you can offset with both +- values you are after, so that you get both inside and outside offsets for all curves. Then you pick the ones with the largest or the smallest length (outside or inside).
you can also use one these two plugins, which have nice offset components.
best
alex
Offset has also given me a lot of troubles before, when it starts randomly failing, so I also use Clipper and Bowerbird.
Only thing to mention is that Clipper only does Polyline offsets, so is best used for curves that are not smooth. What you can do though is explode the polyline and then use the vertices in a interpolate or nurbs curve.
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by