Skip to content

Commit

Permalink
Added missing method for nonzero_offset.
Browse files Browse the repository at this point in the history
  • Loading branch information
algorithmicdesign committed May 23, 2024
1 parent 62db4c3 commit d04c85e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Geometry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ nonzero_offset(path::CircularPath, d::Real) =
circular_path(path.center, path.radius - d)
nonzero_offset(path::ArcPath, d::Real) =
arc_path(path.center, path.radius - d, path.start_angle, path.amplitude)
nonzero_offset(path::ClosedPathSequence, d::Real) =
ClosedPathSequence([nonzero_offset(path, d) for path in path.paths])


export offset

Expand Down

0 comments on commit d04c85e

Please sign in to comment.