EditBoundary.auto_simp!Method
auto_simp!(R₀,R,tolsmt,tolarea)

Automatic mode for polygon simplification. Subroutine for polygonal regions.

1. Delete points by ϵ-test
2. Polygon smoothing
3. Delete points by ϵ-test
4. Rounding for digital curves

INPUT: - R₀ data structure of the original region - R data structure of the approximate region - tolsmt smoothing level - tolauto tolerance for automatic mode OUTPUT - nothing, (R is overwritten)

EditBoundary.auto_simpMethod
auto_simplification(Ω,tolsmt,tolcol,tolrad)

Automatic mode for polygon simplification. Subroutine for simply connected polygons

EditBoundary.radiusineMethod
radiusine(A,B,C)

Get double product inradius r × circunradius R weighted by the sine of the interior angle

EditBoundary.tol2perMethod

tol2per(R₀,tol_range)

Get simplification percentages at the given simplification tolerances

INPUT - R₀ contour - tol_range tolerance range

EditBoundary.triangle_areas_sortedMethod

αvec == triangleareassorted(R)

Compute the areas of triangles generated by three consecutive vertices of a polygonal region.

The areas are scaled so that their average is equal to one.

EditBoundary.αMethod

α(Ω,p,q,r)

Compute the area of the triangle PQR in polygonal region Ω, where P = Ω[p], Q = Ω[q], R = Ω[r]

EditBoundary.αMethod

α(Ω)

Compute the area of a simply-connected polygonal region Ω: v₁,v₂,...,vₙ.

          ₙ₋₁

α(Ω) = 1/2 ∑ det(vₖ,vₖ₊₁) + 1/2⋅det(vₙ,v₁) ₖ₌₁

EditBoundary.∂perimMethod
∂perim(v)

Let x be the two column arragety of contour coordinates.

Compute the gradient of the contour perimeter

with respect to its coordinates