Clay 3d printing -- spiralized contour wave surface patterns

Hello, I am trying to combine 2 definitions from Advanced 3d Printing with Grasshopper for Clay and FDM (below):

and

But I can’t get them to connect – I’m sure there are redundancies but I am hoping to maintain the graceful spiral made from the combined contours and the alternating layers of “waves” if possible.

I can only get the “wave” contours to spiralize independent of the non-wave contours/layers.

Something is amiss near the second dispatch, brep closest point, and flip matrix.

My draft definition is below:

clay spiral and weave combined.gh (19.5 KB)

Thanks in advance for your help!

John


Why do you feed vector into there?

1 Like

Hi Quan Li, thanks for responding –

Hmmm, I think because that is how the contours are joined into a continuous polyline before they can be turned into a gradual spiral in the definition shown in the first photo?

The second definition is more straight forward, I’m not having a problem with it on its own, I’m just trying to apply it to the spiralized contour that relies on a number of components to join the contours into one smooth spiral.

John

clay spiral and weave combined Edited V0.gh (16.3 KB)
If you like to get the answer base on the screenshot, you better make them into a GH, people here don’t want to reproduce a definition base on a screenshot. There is a guideline for that.

And I guess combining them is not feasible anyway, so I created a new one based on your cylinder.

2 Likes

This looks very similar to a thread three weeks ago:

Thank you Quan Li,

The second screenshot also include text (bottom left) which essentially says to combine that one with the first screenshot so I’m assuming it’s not a total departure?
I’ve attached the 2 separate definitions in one file that need to be combined as you’ve advised as well photos of 3d prints using the combined script in the book.

Clay spiral and wave_02.gh (40.3 KB)

Thanks again!

John

Thanks Josef,

Yes it’s from the same book :smile: – only mine is the chapter before point point attractors. If you take a look at my post from a few minutes ago, the piece I’m missing is the spiral from much earlier in the book - this is significant because it can be converted to gcode to “draw” one continuous line of clay as opposed to separate layers. The book infers that the two methods are meant to be combined, but I can’t figure out how to connect the contours while maintaining separation between the dispatched wavy and non-wavy layers. Separate definitions are in the same file below:

John

Clay spiral and wave_02.gh (40.3 KB)

I’m distracted and haven’t looked at your latest code yet. In another thread, @martinsiegrist posted a python spiral thing that was cool and might be useful for you.

That thread mixed up several different concepts so might get confusing… Martin and I had different ways of doing spirals, as he explained here:

my approach with the sporphed spirals results in equal height difference and increasing slope while your loft has an equal slope but the height of the loops decreases.

Both are valid, though they produce different results. I’ll find time to look at your code later; I have avoided it because I wasn’t satisfied with my results three weeks ago. (seems like much longer!)

1 Like

May I ask what book is that?

Advanced 3D Printing with Grasshopper®: Clay and FDM
by D. Diego Garcia Cuevas (Author), D. Gianluca Pugliese (Author)

2 Likes

I didn’t combine the two methods because they really aren’t compatible. So wrote the white group to mimic the method used for the cylinder by:

  1. partitioning the segments of the spiral polyline into branches of 32 segments each (once around)

  2. using TStat (Tree Statistics) to Dispatch every 4th branch of segments (‘B’ output)

  3. moved the midpoint of each segment outward and created a polyline fragment with it (NOTE: I did not use Brep CP ‘N’ (normal vector) as the cylinder does because the curved shape would cause points to move up or down. Instead, I created a vertical line in the shape’s center (cyan group) and used Crv CP and Vec2Pt to get a vector pointing outward)

  4. finally, I reassembled all the polyline segments to get one spiral polyline again.



Clay spiral and wave_2023Jun27a.gh (52.5 KB)

Hi Joseph, this is awesome, thanks so much! I’m going to try printing your script with clay — and some other more basic experiments just to see how necessary the spiral is - this a very elegant solution/explanation.

It did seem that isolating the contours/layers so that waves and non-waves would connect in a spiral would have to have a very steep seam transition to stay as one continuous line? The book doesn’t give give much detail here - another area I’m going yo try to figure out is horizontal staggering if the waves in different patterns.

Thanks again! Hope to have pieces to share soon -

John

Thank you! I got it.

Is that a question? The way this spiral is created works well enough, eh, so I didn’t touch it.

Several ideas come to mind… One is to copy the ‘Count’ slider (value = 32) and use a different value for the Partition ‘S’ input.

Another is to skip partitioning the segments and just Dispatch them in various patterns. For example, this moves midpoints on every other segment of the spiral:



Clay spiral and wave_2023Jun28aa.gh (45.8 KB) (UPDATED!)

The pattern generator (purple group), used by both Dispatch and Weave, can produce many interesting effects:

Finally, a third method (in your next chapter) is using attractors… :wink:

5 Likes

@Joseph_Oster hi, i am trying to use an image attractor to change the spike amplitude using the book “advanced 3d printing with grasshopper”'s way or your way and i am at a dead end. i was wondering if you did try this or have any idea. btw great thread!