packages/pyglGA/scripts/basicCharacterApp.py
def loadModelAssimp(filepath):
    """
    Loads an assimp supported model as an assimp scene and extract vertices, normals and texcoords
    
    Args:
        filepath ([string]): [the relative path of the 3D asset]
    """
    global scene
    global pMesh
    
    print("\n loadModelAssimp() ready to load: ", filepath)
    #with pyassimp.load(filepath) as scene:
    scene = pyassimp.load(filepath)
    #scene = load(filepath)
    assert len(scene.meshes), "pyAssimp could not load mesh!"
    #assert len(scene.meshes)
    pMesh = scene.meshes[0]
    assert len(pMesh.vertices)
    
    numpy.set_printoptions(suppress=True)
    
    vertices = numpy.array(pMesh.vertices, 'f')
    normals = numpy.array(pMesh.normals, 'f')
    texCoords = numpy.array(pMesh.texturecoords[0], 'f')
    texCoords = numpy.delete(texCoords, numpy.s_[2], 1)
    """
    if texCoords == None:
        print("no texCoords on file", filepath)
    if vertices == None:
        print("no vertices on file", filepath)
    if normals == None:
        print("no normals on file", filepath)
    """
    
    print(vertices)
    print(normals)
    print(texCoords)
    
    return vertices, normals, texCoords

    Loads an assimp supported model as an assimp scene and extract vertices, normals and texcoords
    
    Args:
        filepath ([string]): [the relative path of the 3D asset]
    
Loads an assimp supported model as an assimp scene and extract vertices, normals and texcoords
Loads an assimp supported model as an assimp scene and extract vertices normals and texcoords
def loadModelAssimp(filepath):
    global scene
    global pMesh
    print("\n loadModelAssimp() ready to load: ", filepath)
    scene = pyassimp.load(filepath)
    assert len(scene.meshes), "pyAssimp could not load mesh!"
    pMesh = scene.meshes[0]
    assert len(pMesh.vertices)
    numpy.set_printoptions(suppress=True)
    vertices = numpy.array(pMesh.vertices, 'f')
    normals = numpy.array(pMesh.normals, 'f')
    texCoords = numpy.array(pMesh.texturecoords[0], 'f')
    texCoords = numpy.delete(texCoords, numpy.s_[2], 1)
    print(vertices)
    print(normals)
    print(texCoords)
    return vertices, normals, texCoords
def loadModelAssimp ( filepath ) : global scene global pMesh print ( "\n loadModelAssimp() ready to load: " , filepath ) scene = pyassimp . load ( filepath ) assert len ( scene . meshes ) , "pyAssimp could not load mesh!" pMesh = scene . meshes [ 0 ] assert len ( pMesh . vertices ) numpy . set_printoptions ( suppress = True ) vertices = numpy . array ( pMesh . vertices , 'f' ) normals = numpy . array ( pMesh . normals , 'f' ) texCoords = numpy . array ( pMesh . texturecoords [ 0 ] , 'f' ) texCoords = numpy . delete ( texCoords , numpy . s_ [ 2 ] , 1 ) """
    if texCoords == None:
        print("no texCoords on file", filepath)
    if vertices == None:
        print("no vertices on file", filepath)
    if normals == None:
        print("no normals on file", filepath)
    """ print ( vertices ) print ( normals ) print ( texCoords ) return vertices , normals , texCoords
Loads an assimp supported model as an assimp scene and extract vertices, normals and texcoords
Loads an assimp supported model as an assimp scene and extract vertices normals and texcoords
"""
    Loads an assimp supported model as an assimp scene and extract vertices, normals and texcoords
    
    Args:
        filepath ([string]): [the relative path of the 3D asset]
    """ #with pyassimp.load(filepath) as scene: #scene = load(filepath) #assert len(scene.meshes) """
    if texCoords == None:
        print("no texCoords on file", filepath)
    if vertices == None:
        print("no vertices on file", filepath)
    if normals == None:
        print("no normals on file", filepath)
    """
filepath
[the relative path of the 3D asset]
[ the relative path of the 3D asset ]