How to vary the size of mesh vertex openings using an attractor point?

Hi everyone!

I need some help with a Grasshopper definition I’m currently developing.

I have a SubD geometry, and I’m applying the TriRemesh component to it. I am trying to “trim” or “cut” the corners of the resulting triangles to create a perforation/opening at each vertex (as shown in the Rhino screenshot).

My question is: how can I vary the size of these resulting perforations based on an attractor point (or any other attractor metric)? I want to be able to control the scale of these openings dynamically across the mesh.

I have attached a screenshot of my current Rhino viewport and Grasshopper canvas. Any guidance or suggestions would be greatly appreciated!

Thank you so much for your time.

Hi,

In your defenition is the same domain for each segment, you need to create for each segment a different domain.

Create a point as a attractor, measure the distance to each segment ( take the midpoint ).

Now you have a distance value to each segment , to use it as a domain remap the distance values to get values between 0 to 1. After remapping use it as a domains for the segments.

Your setup control the size of the segment not the size of the hole.

Here is a example

working example

trimesh.gh (23.5 KB)

Just replace the internalized data with your data