Open nmaslarinos opened 1 year ago
One idea for a fix would be to create append
, extend
, insert
, del
, and pop
methods to complement the existing __get__
and __set__
methods. Also, turning the points
into a read-only attribute would make the above bud impossible to reproduce, but it could break certain codes.
Describe the bug When modifying a Polyline's or Polygon's
points
attribute by adding or removings items from the list, thelength
attribute is not updated. This problem also occurs when using methods, such asshorten
, which directly perform modifications to the list.To Reproduce Steps to reproduce the behavior:
Expected behavior It would be normal that modifying the
points
would result in the recalculation of the polyline's length (and on this note, thelines
as well)Desktop (please complete the following information):