Refit one shape into another (clock numbers problem)

Hi,

I’m working on a plate for a sundial and I’m trying to achieve this particular effect in Grasshopper.

3997c231ed221600320e97aa12acc0b7

However, I don’t know which function to use to remap my numbers in a similar… The logic behind is to remap a particular number in its’ rectangular box to a new shape, but I can’t find the smart fucntion to it… The Roman numbers are easier, it’s enough to remapping the cardinal points but the Arabic numbers would be just too long to do it manually.

If anybody had an idea, I would be very grateful for some hints!

how about Map to Surface component?

1 Like

Hi,

Flow seems to give a regular shear effect.

ClockFlowText.gh (16.8 KB)

Otherwise I’d think of Box Morph. The height wouldn’t matter as long as the text to deform is flat.

BoxMorphClock.gh (31.6 KB)

1 Like

Thank you for your magic Teddy, that was exactly what i was looking for!

Although I have one more question concerning the solution with the “flow” function. Shouldn’t be the top and bottom edges rounded as well after the transformation?

This seems to work here if I give a rectangle as well as the text.

ClockFlowText.gh (17.7 KB)

1 Like

Yeah! Thanks magicteddy

Your script works like magic for a standard circle. In my design I’m dealing with a circle with a different centre than the rays of the sundial. So each number is deformed twice: by the curve of the base of the number and by the angle of the ray. And I still cannot find the function to “skew” the number to match the ray angle…

This is a job for Sporph I think.

ClockSporph.gh (25.2 KB)

1 Like

Perfect! Thank you one more time!