Thanks alot, now it works

illu...@gmail.com schrieb am Montag, 1. Januar 2024 um 19:56:30 UTC+1:

> 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 <
> sy...@googlegroups.com> 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.
>>
>> illu...@gmail.com 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 <
>> sy...@googlegroups.com> 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 sympy+un...@googlegroups.com.
>> 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 sympy+un...@googlegroups.com.
>>
> 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 sympy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/16f133a6-8f78-43a4-8a13-fa363b23465an%40googlegroups.com.

Reply via email to