Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
convexe polygon around a shape
#2
This is called a "convex hull". There are several algorithms for this, just google. A Bezier curve is strictly enclosed in the 4 points that define it, so the thing you search is the convex hull of all the anchors and tangents in the text path (pdb.gimp_vectors_new_from_text_layer(image, layer)).

If you want an example script, my ofn-enclosing-circle does something similar: find the smallest circle that contains all the points of  a path.
Reply


Messages In This Thread
RE: convexe polygon around a shape - by Ofnuts - 05-13-2023, 05:36 AM
RE: convexe polygon around a shape - by Ofnuts - 05-14-2023, 07:54 AM
RE: convexe polygon around a shape - by Ofnuts - 05-16-2023, 08:36 PM

Forum Jump: