Skip to content

Commit

Permalink
Break up and refactor clip function and remove non-specific methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemanja Jovanovic committed Sep 18, 2024
1 parent 157471c commit 4d9dc58
Show file tree
Hide file tree
Showing 5 changed files with 182 additions and 258 deletions.
4 changes: 2 additions & 2 deletions docs/src/algorithms/clipping.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ outer = Ring((8, 0), (4, 8), (2, 8), (-2, 0), (0, 0), (1, 2), (5, 2), (6, 0))
inner = Ring((4, 4), (2, 4), (3, 6))
poly = PolyArea([outer, inner])
# clipping geometry can be a polygon with holes
other = poly |> Rotate(π) |> Translate(8, 8)
# clipping geometry
other = outer |> Rotate(π) |> Translate(8, 8)
# clipped polygon
clipped = clip(poly, other, WeilerAthertonClipping())
Expand Down
2 changes: 1 addition & 1 deletion src/Meshes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ include("winding.jl")
include("sideof.jl")
include("orientation.jl")
include("merging.jl")
include("clipping.jl")
include("clamping.jl")
include("intersections.jl")
include("clipping.jl")
include("complement.jl")
include("simplification.jl")
include("boundingboxes.jl")
Expand Down
Loading

0 comments on commit 4d9dc58

Please sign in to comment.