nibbla Posted February 14, 2019 Share Posted February 14, 2019 Hello everyone! I'm trying to create a spiral polyline wrapped around a rather intricate mesh surface. I was able to achieve something like this in Grasshopper (screenshot attached). However, the spirals are straight for an entire lap around the mesh before "jumping up" to the next level so-to-speak. What I'm after is more of a smooth spiral following the mesh surface all the way form the bottom to the top. I've been trying my luck with the Creep SOP, but to no avail. Any help is greatly appreciated!!! Best, Nibbla Quote Link to comment Share on other sites More sharing options...
Midasssilver Posted February 15, 2019 Share Posted February 15, 2019 I've done something similar to that by essentially building a spiral curve that is slightly wider than the mesh, that covers the height of your object. Then use a ray sop with the projection set to minimum distance to get the curve placed on your object. That's how I made this: Quote Link to comment Share on other sites More sharing options...
zarralax Posted February 15, 2019 Share Posted February 15, 2019 Ray works well. You want your point normals to point to the center in X an Z SpiralConform.hip 1 Quote Link to comment Share on other sites More sharing options...
nibbla Posted February 15, 2019 Author Share Posted February 15, 2019 Thank you so much! This is definitely something along the lines (no pun intended) of what I'm after! Now I'm trying to distribute the spiral unevenly around the mesh. So that if I have a shape that is taller in one end, there will be more distance between the spiraling lines in that end (see illustration). I've tried to achive something like this with the help of the Bend SOP to taper the lines, but its flimsy to say the least (file attached). Any help in achieving this next step is very much appreciated!!! All the best, Nibbla Uneven spiral ray.hipnc Quote Link to comment Share on other sites More sharing options...
Paul Corfield Posted February 15, 2019 Share Posted February 15, 2019 This isn't perfect by any means but doing an attribute transfer with 'match P attribute' ticked gets it somewhere near, it's not nice and evenly spaced though. Tried a smooth and relax with varying degrees of success. The resulting shape can then be ray'd back onto the surface, again with varying degree of success. Uneven spiral ray.hipnc Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted February 15, 2019 Share Posted February 15, 2019 Unwrap the mesh (right) before deformation (left): Assign zigzag UVs to the curve (right) and transfer positions from the mesh based on both UVs (left): spiral_mesh.hipnc 5 Quote Link to comment Share on other sites More sharing options...
nibbla Posted February 15, 2019 Author Share Posted February 15, 2019 Thanks a lot everyone! The UV approach was really interesting. I'll keep experimenting with what you all showed me! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.