Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error outputting to STL format #126

Closed
ipadjen opened this issue Dec 8, 2021 · 2 comments
Closed

Error outputting to STL format #126

ipadjen opened this issue Dec 8, 2021 · 2 comments

Comments

@ipadjen
Copy link
Contributor

ipadjen commented Dec 8, 2021

Tried outputting 3D BAG tile number 5910, and I get the following error while outputting to STL format:

Traceback (most recent call last):
File "/home/ivan/.local/bin/cjio", line 8, in
sys.exit(cli())
File "/usr/lib/python3/dist-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1164, in invoke
return _process_result(rv)
File "/usr/lib/python3/dist-packages/click/core.py", line 1101, in _process_result
value = ctx.invoke(self.result_callback, value,
File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/ivan/.local/lib/python3.8/site-packages/cjio/cjio.py", line 105, in process_pipeline
cm = processor(cm)
File "/home/ivan/.local/lib/python3.8/site-packages/cjio/cjio.py", line 210, in processor
exporter(cm)
File "/home/ivan/.local/lib/python3.8/site-packages/cjio/cjio.py", line 162, in exporter
re = cm.export2stl()
File "/home/ivan/.local/lib/python3.8/site-packages/cjio/cityjson.py", line 1645, in export2stl
out.write("facet normal %f %f %f\nouter loop\n" % (n[0], n[1], n[2]))
NameError: name 'n' is not defined

It happens whether I use the 'triangulate' command or not.

@balazsdukai
Copy link
Member

Which cjio --version are you using?

@ipadjen
Copy link
Contributor Author

ipadjen commented Dec 8, 2021

0.7.2 - tried also combining it with 'upgrade', same output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants