algorithmic modeling for Rhino
Hello everyone!
I am working on a model with a woven structure.
At the edges the weave starts at different heights (as shown in the picture). I want it to connect to a single edge line, that is why It is essential they start in the same height.
The woven structure goes in 2 directions so there is 4 edges that would need editing.
I feel like I would have to shift the grid in a certain way but Im not sure how to do this because the place where the weaves are at the same height is variable.
Thanks for your input in advance.
Tags:
Here is a version that uses your offset surface idea. It weaves, then culls alternate points from the two surfaces to create the guide curves. Flipping the points generates the second set of curves. Finally, a cluster I just wrote called 'zEnds', in the pink(?) group, replaces the first and last weaved points on each curve with the relevant points from the original surface.
Code inside the 'zEnds' cluster:
I like these curves a lot! They work well on all three test surfaces. Better and much simpler than the curves I created yesterday, which I discarded.
Both of our versions of the ribbons need improvement.
I encapsulated code I had in the blue groups to a cluster called 'RemFL'. It removes first and last items in any list. You can see it in my version of the ribbons. I tried applying it to your version of ribbons but had trouble merging them in sequence so skipped it.
Hey again! You are putting a lot of work in this, thank you very much!
But in the last version to me it looks like the weave is not right anymore? The ribbons are intersecting instead of weavng over eachother.
Awesome!
I have the feeling the ribbons do not have the right angle because the "Align" component gets an angle that corresponds to a frame that is in a normal with the plane. Instead it should be getting the angle from a plane that is perpendicular through the plane?
Right now I'm ttrying to find out if Im correct in this.
Well, well... I figured out why my ribbons are messed up! I greatly simplified my code to align the rectangular sections for 'Sweep1' - just as trivial as I expected; surface normals have nothing to due with it. It works perfectly on the 'PlaneSrf', near perfectly on your slightly curved test surface ('Original Srf' in the GH file) and fails badly on the cylinder - UNLESS I bypass 'zEnds'. BIG CLUE!
Using the 'Tree/List Viewer' (not just for beginners, I use it all the time!), I finally figured out why. It turns out that on curved surfaces, the point on the original surface is not in a straight line with the corresponding points on the offset surfaces. Using it causes the guide curve to twist, which causes torsion that messes up alignment of the 'PFrames'.
So (without trying to figure out why they don't line up...?), the fix is to derive the point half way between the two and use that as the substitute end point. That was the main purpose of this thread, after all, eh?
I want it to connect to a single edge line
TBC (To Be Continued), as time permits.
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