mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Fix some typos
This commit is contained in:
parent
0a136b58f0
commit
af6d30c067
@ -51,7 +51,7 @@ class AMFReader(MeshReader):
|
|||||||
base_name = os.path.basename(file_name)
|
base_name = os.path.basename(file_name)
|
||||||
try:
|
try:
|
||||||
zipped_file = zipfile.ZipFile(file_name)
|
zipped_file = zipfile.ZipFile(file_name)
|
||||||
xml_document = zfile.read(zipped_file.namelist()[0])
|
xml_document = zipped_file.read(zipped_file.namelist()[0])
|
||||||
zipped_file.close()
|
zipped_file.close()
|
||||||
except zipfile.BadZipfile:
|
except zipfile.BadZipfile:
|
||||||
raw_file = open(file_name, "r")
|
raw_file = open(file_name, "r")
|
||||||
@ -89,7 +89,7 @@ class AMFReader(MeshReader):
|
|||||||
for vertices in amf_mesh.iter("vertices"):
|
for vertices in amf_mesh.iter("vertices"):
|
||||||
for vertex in vertices.iter("vertex"):
|
for vertex in vertices.iter("vertex"):
|
||||||
for coordinates in vertex.iter("coordinates"):
|
for coordinates in vertex.iter("coordinates"):
|
||||||
v = [0.0,0.0,0.0]
|
v = [0.0, 0.0, 0.0]
|
||||||
for t in coordinates:
|
for t in coordinates:
|
||||||
if t.tag == "x":
|
if t.tag == "x":
|
||||||
v[0] = float(t.text) * scale
|
v[0] = float(t.text) * scale
|
||||||
@ -104,7 +104,7 @@ class AMFReader(MeshReader):
|
|||||||
indices = []
|
indices = []
|
||||||
for volume in amf_mesh.iter("volume"):
|
for volume in amf_mesh.iter("volume"):
|
||||||
for triangle in volume.iter("triangle"):
|
for triangle in volume.iter("triangle"):
|
||||||
f = [0,0,0]
|
f = [0, 0, 0]
|
||||||
for t in triangle:
|
for t in triangle:
|
||||||
if t.tag == "v1":
|
if t.tag == "v1":
|
||||||
f[0] = int(t.text)
|
f[0] = int(t.text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user