partial edit of a simple polygon by python

Hi,
I am trying to partial edit a simple polygon by python. The code is attached.
The polygon is (0,0;0,10;10,10;10,5;10,0) with raw mode. I want to move the edge (10,5;10,0) outer, but it did not work in my python code.

Comments

  • This is a new one ... code pasted as images.

    You can't just move an edge this way. You need to create a new polygon from a new list of points and replace the shape by the new polygon.

    Matthias

  • edited March 2021

    and you give us grief over backticks :D

  • Hi!

    You could also use <pre>some code</pre> syntax.

Sign In or Register to comment.