Skip to main content
Inspiring
October 1, 2020
Question

Is there any good way to find the largest rectangular area in any irregular closed path

  • October 1, 2020
  • 1 reply
  • 206 views

Is there any good way to find the largest rectangular area in any irregular closed path? Because, I need to mark a number in this closed path area, and the number cannot overlap the edge of the path.

see: Figure 1 is a closed path. I want to mark numbers on it. Figures 2 and 3 are wrong because the numbers are pressing on the edge of the path. Figures 3, 4, and 5 are all correct. I can only get the segment of each Bezier curve of the closed path, so how can I calculate the correct marker position?

This topic has been closed for replies.

1 reply

pixxxelschubser
Community Expert
Community Expert
October 1, 2020

Maybe this older thread is a good starting point for you.

Script. Insert text number in the middle of visible bounds of the each object  

 

Have fun

😉