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

Corrupted .obj file if to_obj() function was ran more than once #190

Open
adambgnr opened this issue Jun 10, 2020 · 0 comments
Open

Corrupted .obj file if to_obj() function was ran more than once #190

adambgnr opened this issue Jun 10, 2020 · 0 comments
Labels

Comments

@adambgnr
Copy link

It is a nice feature of Geomeppy that it can translate .idf files to .obj files. What I have noticed is that the generated .obj file sometimes turns out to be weird. There are faces in it without vertices (lines only with an "f" in them. See attachment).

How to reproduce:

  • Start python (e.g. IPython in a shell)
  • Run some script with geomeppy idf.to_obj() function. - the obj file will be fine this time.
  • Run the script again (e.g. because you have changed some parameter) - the obj file will be weird
  • Close python (close IPython)
  • Start python again
  • Run the script - the obj file will be fine this time again.

It seems this only happens, if you run the idf.to_obj(), then run it again, without restarting the python kernel (this can easily happen if you use Python in a scripty way, i.e. executing line by line in a shell with IPython, or you work in some integrated IDE, like Spyder).

Any ideas what might cause this?

obj_files.zip

@jamiebull1 jamiebull1 added the bug label Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants