EditBoundary.J₂
— MethodJ₂(x)
Linear Map: (x₁,x₂) ↦ (x₂,-x₁).
EditBoundary.areas
— Methodareas(P,Q,R)
Area of triangle PQR
EditBoundary.areasine
— Methodareasine(P,Q,R)
Area of triangle PQR weighted by the sine of the interior angle
EditBoundary.auto_simp!
— Methodauto_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_simp
— Methodauto_simplification(Ω,tolsmt,tolcol,tolrad)
Automatic mode for polygon simplification. Subroutine for simply connected polygons
EditBoundary.del_repts!
— Functiondel_repts!(R,ltol)
Delete repeated points in a polygon using the length of segments
EditBoundary.del_repts
— Methoddel_repts(Ω,ltol)
Delete repeated points in a polygon using the length of segments
EditBoundary.distseg
— Methoddistseg(a,b,p)
Compute euclidean distance from the segment ab to the point p.
EditBoundary.edit_bnd3
— Methodedit_bnd3(plt,tab,R,tlabels,infovec,nH₀)
Routine for interactive edition of polygons by mouse clicks
EditBoundary.get_cos
— Methodget_cos(P,Q,R)
Compute cos(Q) in the triangle PQR using the dot product
EditBoundary.perim
— Methodperim(v)
Compute the perimeter of a simplgety-connected polgetygonal region
EditBoundary.radiusine
— Methodradiusine(A,B,C)
Get double product inradius r × circunradius R weighted by the sine of the interior angle
EditBoundary.readGEO
— MethodreadGEO(A)
Get two-column array of countour points coordinates
from GEO file of GMSH
EditBoundary.readPOLY
— MethodreadPOLY(A)
Get two-column array of countour points coordinates
EditBoundary.reverse_orientation!
— Methodreverse_orientation!(R)
Reverse orientation of a polygonal region using its triangle areas
EditBoundary.reverse_orientation!
— Methodreverse_orientation!(Ω)
Reverse orientation of a clockwise oriented polygon using its triangle areas
EditBoundary.save_region
— Methodsave_region(R,dirpath)
Save polygonal region in GEO format of GMSH
EditBoundary.tol2per
— Methodtol2per(R₀,tol_range)
Get simplification percentages at the given simplification tolerances
INPUT - R₀ contour - tol_range tolerance range
EditBoundary.triangle_areas
— Methodαvec = triangle_areas(R)
Compute the areas of triangles generated by three consecutive vertices of a polygonal region.
EditBoundary.triangle_areas
— Methodtriangle_areas(Ω)
Compute the areas of triangles generated by three consecutive vertices of a simple-connected polygon.
EditBoundary.triangle_areas_sorted
— Methodα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.∂perim
— Method∂perim(v)
Let x be the two column arragety of contour coordinates.
Compute the gradient of the contour perimeter
with respect to its coordinates