EditBoundary.areasineMethod
areasine(P,Q,R)

Area of triangle PQR weighted by the sine of the interior angle

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.del_repts!Function
del_repts!(R,ltol)

Delete repeated points in a polygon using the length of segments

EditBoundary.del_reptsMethod
del_repts(Ω,ltol)

Delete repeated points in a polygon using the length of segments

EditBoundary.distsegMethod
distseg(a,b,p)

Compute euclidean distance from the segment ab to the point p.

EditBoundary.edit_bnd3Method
edit_bnd3(plt,tab,R,tlabels,infovec,nH₀)

Routine for interactive edition of polygons by mouse clicks

EditBoundary.get_cosMethod
get_cos(P,Q,R)

Compute cos(Q) in the triangle PQR using the dot product

EditBoundary.perimMethod
perim(v)

Compute the perimeter of a simplgety-connected polgetygonal region

EditBoundary.radiusineMethod
radiusine(A,B,C)

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

EditBoundary.readGEOMethod

readGEO(A)

Get two-column array of countour points coordinates

from GEO file of GMSH

EditBoundary.tol2perMethod

tol2per(R₀,tol_range)

Get simplification percentages at the given simplification tolerances

INPUT - R₀ contour - tol_range tolerance range

EditBoundary.triangle_areasMethod
αvec = triangle_areas(R)

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

EditBoundary.triangle_areasMethod
triangle_areas(Ω)

Compute the areas of triangles generated by three consecutive vertices of a simple-connected polygon.

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.αMethod

α(P,Q,R)

Evaluation of the area functional at the triangle PQR.

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