Commit da88d5aa authored by sumpfralle's avatar sumpfralle

accept DXF files without z coordinates (flat models)


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@881 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 42a5f304
...@@ -228,8 +228,9 @@ class DXFParser: ...@@ -228,8 +228,9 @@ class DXFParser:
def parse_line(self): def parse_line(self):
start_line = self.line_number start_line = self.line_number
p1 = [None, None, None] # the z-level defaults to zero (for 2D models)
p2 = [None, None, None] p1 = [None, None, 0]
p2 = [None, None, 0]
key, value = self._read_key_value() key, value = self._read_key_value()
while (not key is None) and (key != self.KEYS["MARKER"]): while (not key is None) and (key != self.KEYS["MARKER"]):
if key == self.KEYS["START_X"]: if key == self.KEYS["START_X"]:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment