I have a feature with the shape as shown below.
Attachment 32089
I want to draw an image at the center of this feature.
I was using a very simple algorithm to determine the center of the feature.
Clearly this does not work for all shapes (the icon is painted on the hypotenuse of the triangle)
My algorithm will likely fail for round objects to.
Is there a common way to get the center of a feature.
Thanks
Attachment 32089
I want to draw an image at the center of this feature.
I was using a very simple algorithm to determine the center of the feature.
Clearly this does not work for all shapes (the icon is painted on the hypotenuse of the triangle)
My algorithm will likely fail for round objects to.
Is there a common way to get the center of a feature.
Thanks