Ask Your Question

Possible problem in

asked 2021-04-11 02:07:59 +0200

RozaTh gravatar image

updated 2021-04-11 10:49:37 +0200

vdelecroix gravatar image

It seems that the path that is stored by BezierPath is not correct.


p2d = [[(3.0,0.0),(3.0,0.13),(2.94,0.25),(2.8,0.35)],



is different than the given path p2d. There are several consequences to this, for example, the stored path cannot be fed again to bezier_path, so this won't work (results in weird errors):


and also affects the plot3d method of the class.

The issue seems to stem from line 64 of

vertices = self.path[0]

Since the list of vertices changes size after the line so does self.path. I believe the line should be

vertices = deepcopy(self.path[0])
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-04-11 10:24:59 +0200

vdelecroix gravatar image

updated 2021-04-11 10:39:06 +0200

hmmm I wonder who wrote that extremly buggy and untested code! You were exactly right vertices = self.path[0] was the line to blame. Thanks for your report and the precise analysis of the bug!

I opened the ticket #31646 in which I provide a more general cleaning of the BezierPath constructor.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2021-04-11 02:07:59 +0200

Seen: 384 times

Last updated: Apr 11 '21