Create triangulation of hexagonal pattern

Hi all,

I am looking to divide the hexagon into triangles using the “Trimesh” component. The new triangulation lines must start at the corners of the hexagons, and meet at the centroid.

Where the pink is the current grid from the “dual” output, and the yellow is the new lines from the corners to the centroid.

Thanks in advance,

Inke

How do you get the hexagons in the first place? I have a feeling that you missed an opportunity to get your triangles earlier. Attach your file please

1 Like

Thanks for the help. Please find the script attached

260310_Beam casette generation.gh (67.2 KB)

There is a triangulated mesh as the top output of TriRemesh:

The triangulation you’ve drawn in yellow is a little different, but it already exists hidden in the Dual output. The polygons are Ngons, which are actually collections of triangles, just the triangle edges are not normally shown. Here’s a little script which breaks them down into their constituent triangles:


ngonclear.gh (10.8 KB)

1 Like

Thanks for all the effort.

The problem I have is extracting the “Mesh Edges” to a Curve/ Line to be used for Karamba3D.

The “Trimesh” component does create the correct geometry, but I can not seem to create Lines from it.

See file attached with geometry requirement:

ngonclear.gh (16.9 KB)