Connecting curves into one looping path for printing

Hi, I would like to ask how to do a ram up script for the curves to connect together into one looping path for printing on ABB robot. Below is the affect I want. Thanks!!!

https://www.food4rhino.com/en/app/lytcode
This Plugin might help you if you are looking for clay or concrete printing

what you show in your image is usually called scarf seam: instead of moving vertically +Z to the next layer, it more or less slowly ramps up to the next layer

usually you can achieve something like that by averaging relative pairs of points on neighbor layers to get X/Y coordinate, then apply a +Z gradient using something like Range

I don’t know if I would call it a big issue, but it looks like the extruder paths of neighbor layers are pretty different from each other in your drawing

let’s say you are almost done printing layer A and you are approaching the ramp to go to layer B

given the fact that relative points A/B along the ramp would have very different XY coordinates, which one would you chose? A’ ? B’? average those?

Basically average of those, simply talk the effect that i wanted is to let the layer 1 connecting to layer 2 until the last layer to make it a closed loop for continue printing. Sorry i not very expect in the rhino.

Have no idea what you want. Please use any AI to translate or just write with your native language. And you need to add a GH file to the post so people can help you.

Have any video to show how this can works?

I need something like these, to connect all the curves into one looping curve.

this is a very simple way of doing that by intermediate positions, in principle it’s just a matter of evaluating positional Vectors progressively

given a length L on each Layer curve along which the scarf should happen, divide that portion of curves in n points:

then draw vectors between each pair of points:

then give these vectors a gradient linear multiplier as a Range of numbers in the Domain [0, 1]:

finally, move points from bottom layer using those vectors:

and here it is:

scarf_seam_base-concept.gh (27.4 KB)

Thanks for the help, if the model that I want to insert is curves not surface, how to do it?

Small flower pot.3dm (88.0 KB) This is the model that I want to have the ram up effect.

And can make it like capable for all different kind of shape, thanks!!!:grinning_face: :grinning_face:

It could be good you learn a bit more Grasshopper. You just have to not use the contour output and plug your curves there (curves in a datatree)

This is because we are a 3d concrete printing company that using large industrial robot to do the printing, so it cannot be like the ordinary 3d printing machine like Bamboo lab to just jump the point or simply use the slicer in Bamboo lab to print. So, it must have a continuous looping path for the robot to move layer to layer. Hope you can understand.

I will try my best to learn it, thanks.

This is when I connected the curves instead of contours, it become like this.

scarf_seam_base-concept (1).gh (28.1 KB)

your Curves are not internalized:

at first sight it looks like a problem of vertical sorting, maybe you didn’t pick (reference in GH) the curves one by one from bottom to top

you can anyway sort them with something like this:

scarf_seam_base-concept (1)_Re.gh (30.8 KB)


[edit] I opened the definition with the .3dm file you previously posted and here’s what I see on my screen after sorting by Z coordinate:

inno, your a genuis

Very appreciate of your help.:smiling_face_with_three_hearts:

Thanks for the help, but may I ask that why the join parts of the curve doesn’t look very natural.

they don’t look “very natural” because you supplied planar section curves only, which describe very well what happens on each of those planes, but gives no information whatsoever about what happens in-between them :slight_smile:

so, in order to invent a trajectory about which we have no info (I mean the points that ramp-up from layer n to layer n+1 along the scarf seam) the method used was to connect the same divisions points from layer n to layer n+1 with a linear vector

if you can supply a 3D shape instead of a set of planar curves, we could find those ramping points projected on the 3D shape itself, in such a way they would maybe look more natural :slight_smile: