algorithmic modeling for Rhino
3d Curve (multiple offset):
See attached definitions for details (ghx version 0.7.0048)
There're are probably other methods to do a offset of a spatial curve (example link).
You could also translate curve points in the curvature vector direction.
Anybody find this useful? Maybe this could work as a standalone component?
Waiting to hear your thoughts on the subject.
JJ
Tags:
David,
Any plans to add this component in GH?
Thanks!
A quick look suggests to me that the original definition is relying on the curves being closed in order to utilize adjacent points to achieve an average vector. With an open polyline such as you have, there are different questions to be answered, and most likely you'll have to develop a new definition. Are you trying to have it offset in a particular general direction (like in this image, to either the left or the right) or are you trying to allow for a vector average at each kink (which seems to be happening in your attached image, where each kink flies off in opposite directions depending on the kink being concave or convex relative to each other)?
I did a quick (and very very ugly) fix to the original def. that probably should allow you to do what you want.
It takes into account the directionality of the angle between each two segments (utilizing the cross product between the vectors to find it - more info here) and given that info reverses the node average vector or not.
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