I found some problems with my script, the logic was not very good to handle multiple cracks and curve in general (not just lines). It was quite long to find the good algorithm. Here is one version, that I am pretty happy with. Not very fast but it seems to work. The logic is quite simple.
Take curves, says that a curve represant the trajectory of a crack, this crack begins at the start point of the curve, it goes at constant velocity and continue until it touches another crack. As curves are finite I add an extension factor. If 0 no extension if 1 the extension has the length of the diagonal of the bounding box of all the input curves. I choose here to extend curves with line. It is easy to change it. And don’t forget curves are on XY planes and are projected on the XY plane inside the script.
So here a GH with simple script, and a ghuser (not possible to post ghuser). Note that Human plugin is not mandatory. Gilbert Tessellation Example.gh (21.0 KB)
For a simple Gilbert Tessellation
Take some random point, with some random direction and propagrate the crack in 2 opposite directions
Some new Gilbert Tessellations applied on a mesh with variable speed. The initial curves are generated using geodesic curve on mesh.
Here
20 points which generates 3 rays each with a velocity of 200 (thick tubes)
and 100 points which generates 6 rays each with a velocity of 1 (thin tubes)
Hi dear Laurent
Thank your sincerely for checking out parakeet,
Indeed all of your creative works are source of inspiration for all of us. in this particular matter kindly note that:
as I recall, in a discussion you described your method as ‘gradually growing curves from the points upuntil interesection occures’ on the other hand Parakeet’s method places all the curves regardless of intersections, gets the intersection events, sorts them to find to shatter curves in each cluster.
That said, for the sake of goodwill if you could send me an email (motaghi.esmaeil@gmail.com) i’ll send you the full script for this matter, if you decided there is meaningful similarity i’ll gladly include proper acknowledgements, it is absolutely your decision,
Best