You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Howdy! I am using pyassimp. Per the title, I'd like to regenerate normals for some particular model I'm using, since they appear quite weird.
To do this, I think I need to:
pass aiProcess_RemoveComponent in my flags to load (no problem there)
call aiSetPropertyInteger before calling load, passing aiComponent_NORMALS to it.
The second part is where I have problems. The .so that gets loaded by pyassimp_helper's search_library function doesn't contain any function named "aiSetPropertyInteger". Moreover, that function is only mentioned once in cimport.h, and I couldn't find it elsewhere in the repo.
What is the proper procedure for doing this? I am skilled with ctypes and Python in general (and C, but not C++) so I am perfectly happy to hack functionality out if that's needed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Howdy! I am using pyassimp. Per the title, I'd like to regenerate normals for some particular model I'm using, since they appear quite weird.
To do this, I think I need to:
aiProcess_RemoveComponentin my flags to load (no problem there)aiSetPropertyIntegerbefore calling load, passingaiComponent_NORMALSto it.The second part is where I have problems. The .so that gets loaded by
pyassimp_helper'ssearch_libraryfunction doesn't contain any function named "aiSetPropertyInteger". Moreover, that function is only mentioned once incimport.h, and I couldn't find it elsewhere in the repo.What is the proper procedure for doing this? I am skilled with ctypes and Python in general (and C, but not C++) so I am perfectly happy to hack functionality out if that's needed.
Beta Was this translation helpful? Give feedback.
All reactions