Replies: 2 comments 1 reply
-
Hi ! |
Beta Was this translation helpful? Give feedback.
1 reply
-
from ezdxf.math import Vec2
if Vec2(clip[0]).isclose(clip[-1], abs_tol=self.abs_tol): |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi I am new to ezdxf, firstly it is a great packaage thank you for makeing it OpenSource I have a question during my exploring of the package features I encountred a class ConvexClippingPolygon2d in the clipping.py, i thought that may be helpful to my requirements and i tried to get the hang of it by this code # Define vertices of the convex polygon
vertex_tuples = [(0, 0), (4, 0), (4, 4), (0, 4)]
vertices = [Vec2(x, y) for x, y in vertex_tuples]
#print(vertices)
Create a ConvexClippingPolygon2d object
polygon = ConvexClippingPolygon2d(vertices) and I get this error
AttributeError: 'tuple' object has no attribute 'isclose'
in the clipping.py
am i missing something ? please help
Beta Was this translation helpful? Give feedback.
All reactions