python – Importing huge .stl Files / unsigned long long
I have code, which imports a .stl file and does stuff with it.
Currently I am testing the limitations of this code and ran into a problem.
When importing .stl files with a huge amount of vertices I am running into an Error:
array length mismatch (expected -375467073, got 429839295)
The .stl has around 40bn vertices, so I was expecting problems coming my way, but not exactly this. I also got other error messages but blender crashed shortly after and I was unable to copy other errors.
I already found out that I am capping out an unsigned long, which produces the error.
Is there a way to tell blender to import the .stl while using unsigned long long?
Why even is python struggling with datatypes anyways?
Read more here: Source link