I am trying to blend multiple curves in grasshopper for 3d printing of clay.
Say I have one starting curve, is there a way that I can find the closest end point of any curve and blend it with the first curve? And then from the end point of the second curve, find the closest end point of another curve and blend it, so on and so forth?
These are the random lines that i have generated, intended to criss cross
Very easy with code (I have no idea how to do it the other way).
But the 1M question is: why the reverse engineering? If you want a single Polyline that looks like the above Lines … well … notify if you want a very simple demo.
Or you want to get all the Crvs/Crv Ccx events and create Polylines/BrepFaces?
And by what means this is a random mesh generator?
Sorry for the confusion, I did not mean mesh as in Brep/Surfaces.
i am trying to create a single polyline that has the random weave texture that would allow me to 3d-print clay in a single stroke. So the connectors would ideally need to be outside of the square boundary for me to cut off later.
Well … that’s ENTIRELY different to the initial issue description. In the mean time see what I have already on hand (very close to the 2 images provided initially).
How it works:
You define a random (how much random is random (LOL) is up to you) guide Polyline (it could be a Triangle, a Rectangle or any Polyline);
Then you define div pts ( proportional to the min side size) , you connect them randomly (various checks ensure a no bananas result) and then you can output 4 things
Addendum: If Blending with straight lines (“Position” continuity) and applying different colors, it can look pretty interesting (“BlendOtherEnd” in this case):
I don’t find the arc one is the best as circles could have a big radius.
The rectangle connectors seem better, you could change the distance by using an offset
Given the opportunity and for the general case of his (MK2 version) goal(s) desired I have a tough challenge for you: Forget ugly/freaky meshes for a while and try to do this (any N of push/pull attractors) :
I hear you: but this is solved many times here and there.
Well … in fact No . Spot the “even/gradual” deformation PLUS the obvious fact that you should never overpass any pulling attractor (i.e. going beyond his “event horizon” domain).