2

I am having trouble computing the area of the following polygon. I have the following polygon:

polygon = Polygon[{{0, 0}, {0, 1}, {2/10, 1}, {2/10, 8/10}, {4/10, 8/10}, {4/10, 6/10}, {1, 0}}]

The command

Region[polygon]

plots it just fine. I cannot hower compute its area using

RegionMeasure[polygon]

I get the following error

RegionMeasure::nmet: Unable to compute the measure of region Polygon[{{0,0},{0,1},{1/5,1},{1/5,4/5},{2/5,4/5},{2/5,3/5},{1,0}}]

It is not clear to me what causes this error.

EDIT: I need an exact result.

CookieMaster
  • 123
  • 4

1 Answers1

2

If we first use DiscretizeRegion, then it's no problem on version 10.1.

RegionMeasure@DiscretizeRegion@polygon

0.54

NonDairyNeutrino
  • 7,810
  • 1
  • 14
  • 29
  • As far as I understand the DiscretizeRegion method I cannot be sure that it gives me an exact results, although it is the case here(represented as float). Unfortunately I need an exact results. – CookieMaster Nov 26 '19 at 08:41