This stumped me for a moment, too, You need to expand the list of tuples:
poly = Polygon(*polygon) On Mon, Jan 1, 2024 at 9:31 AM 'Jakob Hammersen' via sympy < [email protected]> wrote: > polygon = [(0,0),(200,0),(200,250),(150,100)] > > poly = Polygon(polygon) > > this is what im trying to do but as I said, I get a " ValueError: Nonzero > coordinates cannot be removed" when i run the code. > > [email protected] schrieb am Sonntag, 31. Dezember 2023 um 20:16:54 UTC+1: > > Can you show the section of code? > > On Sun, Dec 31, 2023 at 11:02 AM 'Jakob Hammersen' via sympy < > [email protected]> wrote: > > Hello everyone, > i have a question to the sympy geometry module. > I have a list of tuple where each tuple is representing a vertex of the > polygon. I tried to submit the list to the Polygon-function, but i get the > error "ValueError: Nonzero coordinates cannot be removed". Does anyone have > an idea on how to fix this? > Thanks in advance > Jakob > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/cd496711-4c6d-4696-a058-ccc94ebdeddcn%40googlegroups.com > <https://groups.google.com/d/msgid/sympy/cd496711-4c6d-4696-a058-ccc94ebdeddcn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/8d9e98eb-ec8a-406a-a35a-dc8b2a902ba1n%40googlegroups.com > <https://groups.google.com/d/msgid/sympy/8d9e98eb-ec8a-406a-a35a-dc8b2a902ba1n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAOqZj7NontyPLkUksb-zXY_TDFGeAwSCmO%2BXUqd-UQAS0-qvnQ%40mail.gmail.com.
