In calculating the length of the free boundaries, freeBoundaries does not close the loop before calculating the length of the perimeter, i.e. the final point in the boundary does not return to the original point.
This can be seen with the following example of an equilateral triangle:
In calculating the length of the free boundaries,
freeBoundaries
does not close the loop before calculating the length of the perimeter, i.e. the final point in the boundary does not return to the original point.This can be seen with the following example of an equilateral triangle:
which returns the result of
l = 2.142
, whereas the correct result is1 + sqrt(2) + 1 = 3.142