I am engraving some text into certain pieces for CNC, or Laser Cutting.
I have the pieces and the text, as curves. What I need to achieve is to fit the text within the piece… Right now its placed based on centroids.
For simplification purposes a bounding rectangle can be used to replace the text curves.
My idea is to maybe search for an optimal position with Galapagos, and eventually if the bounding rectangle of the text is still outside the closed curve, then go progressively scaling the text until it fits. I dont think any kind rotation would be a good idea.
So basically I need to fit the text using Translation and Scaling only.
TextFitting.gh (78.4 KB)
Any ideas on where to start are greatly appreciated.