mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
Minor codestyle changes
This commit is contained in:
parent
f3f1bf664a
commit
d7cf65258f
1 changed files with 6 additions and 5 deletions
|
@ -47,6 +47,7 @@ class ThreeMFReader(MeshReader):
|
||||||
mesh_builder = MeshBuilder()
|
mesh_builder = MeshBuilder()
|
||||||
node = SceneNode()
|
node = SceneNode()
|
||||||
vertex_list = []
|
vertex_list = []
|
||||||
|
|
||||||
# for vertex in entry.mesh.vertices.vertex:
|
# for vertex in entry.mesh.vertices.vertex:
|
||||||
for vertex in entry.findall(".//3mf:vertex", self._namespaces):
|
for vertex in entry.findall(".//3mf:vertex", self._namespaces):
|
||||||
vertex_list.append([vertex.get("x"), vertex.get("y"), vertex.get("z")])
|
vertex_list.append([vertex.get("x"), vertex.get("y"), vertex.get("z")])
|
||||||
|
@ -119,8 +120,8 @@ class ThreeMFReader(MeshReader):
|
||||||
Logger.log("e", "exception occured in 3mf reader: %s", e)
|
Logger.log("e", "exception occured in 3mf reader: %s", e)
|
||||||
|
|
||||||
try: # Selftest - There might be more functions that should fail
|
try: # Selftest - There might be more functions that should fail
|
||||||
boundingBox = result.getBoundingBox()
|
bounding_box = result.getBoundingBox()
|
||||||
boundingBox.isValid()
|
bounding_box.isValid()
|
||||||
except:
|
except:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue