Overlapping field lines, minimum distance between elements

Hi there,

I’m trying to create ‘extruded’ version of Tyler Hobbs flow lines drawings that could be built from some kind of sheet material like MDF/ metal, etc…


1b

Tyler gives very detailed description of how to do it but it’s all done with coding. Flow Fields — Tyler Hobbs

https://tylerxhobbs.com/essays/2020/flow-fields

As I’m not familiar with Phyton I was trying to achieve similar effect with grasshopper components.

I’ve managed to replace long curvy flow lines with short rectangles (20mm long by 4mm thick) which can be extruded in Z direction but there are few other issues I need to resolve:

  1. Overlapping of elements – as I’m planning to laser cut the flaps from plywood or plexiglass I can’t have any overlapping elements.
  2. Is there a way of specifying min distance between two elements so that it’s possible to laser cut the holes.

  1. It’s probably too much, but I was thinking that maybe it would also be possible to have various flap lengths depending on curvature. Say whenever there is a sharp turn and shorter flaps would be needed, we could have 20-40mm flaps (blue ones), than red ones and for longer straight lines flaps could go up to 70-100mm in length (yellow ones) …

Thanks in advance for all your help.

fields_min distance.3dm (35.3 KB)

Thank you so much - I’ll play with it over the next few days. Hopefully with your script I’ll be able to get the result I was after.

No problem it could also be useful for me. I have a new version with oversampling, because by default I transform each curve to a polyline with points every “distance by offset”, with oversampling it become a polyline with points every “(distance by offset)/oversampling”. It could be also possible to have 2 distance depending on the direction between 2 curves, parallel or perpendicular …


Before

After

3 Likes

I would also like to use @laurent_delrieu’s script to remove the lines that are too close to each other, from a set of Principal Stress Lines that are obtained with the Karamba plugin (3.7.13: Line Results on Shells - Karamba3D 2.2.0).

Could you please share with me the Grasshopper script you created @laurent_delrieu? I can’t see it in this thread. I would use it for a university assignment.

In advance, thanks for your attention!

@laurent_delrieu what is the last picture in your previous post ^ ?
Seems like a sort of telescope… ?

Yes it is