Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, source):
# super(AssimpObjLoader, **kwargs)
# source = kwargs.get('source', '')
if not source:
print "no source given!"
return
self.scene = scene = load(
source, 0
| postprocess.aiProcess_Triangulate
| postprocess.aiProcess_SplitLargeMeshes
| postprocess.aiProcess_GenNormals
)
self.objects = {}
for i, mesh in enumerate(scene.meshes):
self.objects[i] = AssimpMesh(scene, mesh)
def __init__(self, source):
# super(AssimpObjLoader, **kwargs)
# source = kwargs.get('source', '')
if not source:
print "no source given!"
return
self.scene = scene = load(
source, 0
| postprocess.aiProcess_Triangulate
| postprocess.aiProcess_SplitLargeMeshes
| postprocess.aiProcess_GenNormals
)
self.objects = {}
for i, mesh in enumerate(scene.meshes):
self.objects[i] = AssimpMesh(scene, mesh)