algorithmic modeling for Rhino
In this example I have two surfaces and two sets of curves which have been projected onto their corresponding surfaces (left and right). If I keep the left and right sets of data separate I can do what I want to do.
want I want to do is: divide the curves to get a number of points, use the surface closest point and evaluate surface components to get the UV coords of the points and corresponding surface normal vectors, move the points using the surface normal vectors, and then interpolate a curve through the points
which looks like this:
I can't figure out how to use one set of components to perform this operation, so that I don't have to have redundant components that separate the left and right entities. I have tried using the path mapper, as well ass grafting and flattening the various data sets to achieve the desired result, but I end up getting unsatisfactory results.
any help or insight on this would be appreciated.
Tags:
Rather than messing about with path mappers and path replacement and other horrible operations, I decided to create a list of surfaces that matches the list of curves. Basically, for each curve figure out which surface it belong to*, then use the index to create a list of surfaces that matches the list of curves.
* The one problem part of this approach is that I assume the mid-point of each curve is inside the boundary of the appropriate surface. If that is not the case then this logic will fail. Unfortunately the [Pull Point] component does not output an index (I think I'll add this for the next release), but that would have been the ideal solution.
ps. I internalized the curve and surface data, so you'll have to re-reference it with the rhino objects on your end.
--
David Rutten
david@mcneel.com
Tirol, Austria
Very clever, thank you David. I look forward to seeing the updated pull point component in the next release.
-Bret
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