Skip to content

Commit f97aff2

Browse files
committed
fix z value problem for point 2d
1 parent 92bc8d8 commit f97aff2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

GeoGebra3dTo2D.py

+2
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ def ParseElements(root):
236236
x = float(coords.getAttribute('x'))
237237
y = float(coords.getAttribute('y'))
238238
z = float(coords.getAttribute('z'))
239+
if elementType == 'point':
240+
z = 0
239241
w = coords.getAttribute('w')
240242
if w != '' and w != '0':
241243
w = float(w)

0 commit comments

Comments
 (0)