Attractor panel

Hi there,

I was trying to make something like the image in black, but what i could achieve was simillar (red) but not what I really wanted… I tried to change numbers without sucess

2020-09-18_10-56-10 paneil madeira reto.gh (15.5 KB)

This does not use an attractor.


attractor_panel_2020Sep18a.gh (20.8 KB)

This version using Sweep1 instead of Extrude is much better.


attractor_panel_2020Sep18b.gh (21.8 KB)

1 Like

You could replace the middle polyline with an interpolated curve: (IntCrv)


attractor_panel_2020Sep18c.gh (22.3 KB)

thanks mate, appreciate!

The form is what i meant, but I was wandering if it can automated for surfaces, like extracting those points that define the curve from a predefined surface such as it is in the code i did. This way I can use the code as an automate frame generator.

It looks to me like you used an arbitrary line to pull surface points (in a rather weird way) to make a bumped surface. I really don’t understand your question or your goal?

For what it’s worth, here is a version that is driven by a surface input:


attractor_panel_2020Sep20a.gh (25.1 KB)

It doesn’t handle multiple surfaces, though probably could with a little more care (avoiding flatten!).

Handling multiple surfaces was difficult. I thought I finally had it until I added a third test surface rotated at 45 degrees, which caused the pFrames that define the rectangular cross-sections to get goofy for that surface. So I added Align Plane (yellow group) to deal with that, but who knows what trouble it may cause in some other oddly oriented surface? It is reasonably robust though.


attractor_panel_2020Sep20b.gh (43.6 KB)

Besides using IntCrv instead of PLine, this version adds a domain constraint on Random, ‘0.15 to 0.85’, to prevent the random points that define the middle curve from being too close to the top or bottom edges.


attractor_panel_2020Sep20c.gh (45.2 KB)

It’s possible to implement separate ‘Steps’, ‘Seed’, ‘bump’ and ‘Count’ sliders for each surface, or to compute ‘Count’ based on the edge length of each surface.