Notice

The forum is in read only mode.

  • Page:
  • 1

TOPIC: How to calculate the area of a TPathData?

How to calculate the area of a TPathData? 7 years 1 month ago #1505

I need to calculate the contained area inside of a TPathData, but I cannot find a method on TPathData for this. Is there a helper class or something that could help me out with this?

(Sorry for posting this in the forum. The Submit button in the Answers section seems to be broken)

//Michael

How to calculate the area of a TPathData? 7 years 1 month ago #1524

I don't know of a helper function off hand but here is a math reference online:
www.mathopenref.com/coordpolygonarea2.html

How to calculate the area of a TPathData? 7 years 1 month ago #1560

You could try using TPathData.GetBounds.
  • Page:
  • 1
Moderators: April Anne