Ideas on how to place text within a curve?

Hello people,

Let’s see who can come up with a better solution than me…

I need to laser cut these shapes, and to easily identify and assemble them, I thought I’d place text within them so each would be engraved with its tag (here I am showing only 6 shapes but in reality it could be dozens).

Since I thought the longest curve segment would always be at the top or bottom of the shape, I ordered the curve segments by length and placed the text tag halfway between the midpoint of that longest curve and the centroid of the shape. This worked out find in the majority of the cases, but it turns out the longest curve isn’t always at the top or bottom; sometimes it is on the side.

Obviously I want the engraving placed where there is clear space and not where there are channels cut out. So I was thinking maybe there’s a way to inscribe a circle inside the shape where there is clear space and it doesn’t interfere with the cut out channels. I can’t figure out a way to do that though… or maybe there’s some other solution I’m not thinking of… so, any ideas???

Accidentally sent that without including this:

unnamed.gh (39 KB)
Untitled.3dm (3.3 MB)

unnamed Edited V0.gh (77.2 KB)
Distance

unnamed Edited V1.gh (78.0 KB)
Proportion

Hi,

You are looking the the pole of inaccessibility.

Hey Quan,

I appreciate your help; unfortunately when I open the file it says that you used a plugin called CurvePlus for a command called bounding rectangle and I can’t decipher what it is for… I use a Mac and the plugin is only for Windows so I wasn’t able to figure out the logic :confused:

This works!! Thanks again for continuing to pull me out of my road blocks

unnamed Edited V2 deleted curve plus.gh (80.5 KB)

InscribeCircle component from the OpenNest plug-in will calculate the “pole of inaccessibility”.

It doesn’t work with small geometry, but a work-around is to scale up the input geometry then scale back the result. Works well with your file.

unnamed_re.gh (68.2 KB)

OpenNest plug-in can be installed from _PackageManager.

-Kevin

1 Like

Sorry for the late reply, but thank you for doing this!!

Very useful plug-in thank you!