Skip to content

Commit

Permalink
edit docs #1101
Browse files Browse the repository at this point in the history
  • Loading branch information
mozman committed Jun 7, 2024
1 parent 9bae4db commit f1f35d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ezdxf/math/clipping.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,11 @@ class InvertedClippingPolygon2d(ConcaveClippingPolygon2d):
"""This class represents an inverted clipping path. Everything between the inner
polygon and the outer extents is considered as inside. The inner clipping path is
an arbitrary 2D polygon.
.. Important::
The `outer_bounds` must be larger than the content to clip to work correctly.
"""

def __init__(self, inner_polygon: Iterable[Vec2], outer_bounds: BoundingBox2d):
Expand Down
4 changes: 4 additions & 0 deletions src/ezdxf/tools/clipping_portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,10 @@ class InvertedClippingPolygon(ClippingPolygon):
"""Represents an arbitrary inverted clipping polygon. Removes the geometry
inside the clipping polygon.
.. Important::
The `outer_bounds` must be larger than the content to clip to work correctly.
"""

def __init__(self, vertices: Iterable[UVec], outer_bounds: BoundingBox2d) -> None:
Expand Down

0 comments on commit f1f35d7

Please sign in to comment.