Grasshopper

algorithmic modeling for Rhino

# Perforated Surface

I made a pretty simple definition, that generates a perforated surface. The problem is, that it takes "some" compute time. The question is:

Is there a possibility to trim the surface with generated circles, or create a curve that incorporates both the surface, aswell as the circles, allowing me to extrude it.

If there is another solution, that will cut the compute time, I will be glad to hear it.

Another question regarding the perforation on the edges. Is there a possibility to eliminate that?

Views: 20956

Attachments:

### Replies to This Discussion

I also would like to know how to eliminate the perforations on the edges please.

I am dealing with perforation conditions also. So far I have come to accept that it must be done manually in Rhino geometry.

What is the end goal of this exercise? Fabrication? Visualization? Other?

If it is visualization and from a distance, instead of creating solids you could use an image map or dark gray circular surfaces.

If for fabrication or close-up detail views, then I agree with Adam, you're pretty much stuck waiting.

I modified your definition to make it a little more robust:

- The cylinders extrude in the direction of the surface normal.

- I've culled the circles along the edges.

- I've added a toggle to compute or not the final solid geometry. Leave it at False while you are working, then set it to True when you are ready for the final solution. I do this occasionally at break points in a long or computationally intensive definition, so that I can deal with only what I need.

Attachments:

Hello to eliminate the perforations in edges and to cut some computation time you can try the following

the difference is from 2.9 sec with solid difference down to 900msecond with trim solid.

for some reason definition screen capture does not capture the profiler times.

the comparison uses for both linear extrude in z axis

cheers

alex

Clever! I will give this a try when I get a chance.

Nice, Alex. I updated my definition from above to use the Trim Solid component and your method of remove the boundary points.

Attachments:

nice!

this time i also got to see the image. in the previous definition you shared i had null internalized data and the whole image sampler missing.