Hello! I am having troubles in finding out whether an AutoShape is closed or not. I attached a sample python file and a sample presentation with 3 shapes, two of which are closed and 1 which isn’t (the arc). My question is, how can I know whether I should close the shape? (I am extracting the shape paths and rendering them using Matplotlib for some use case). For example, the rectangle shape has these points and commands:
Shape name: Rectangle 13
Commands: ['moveTo', 'lnTo', 'lnTo', 'lnTo']
Points: [[0.0, 0.0], [171.233154296875, 0.0], [171.233154296875, 83.93779754638672], [0.0, 83.93779754638672]]
and if you were to draw this, you would not get a closed shape (the left edge would be missing, which connects the last and first point). Also, when I call the path.close_figure()
function (which is commented out in the code), it doesn’t change anything in the geometry paths.
sample.zip (23.4 KB)
Any help would be appreciated, thanks!