def BuildModel(filepath): model = ls.ioModel() #Add vertices for vertex in vertices: model.vertices.append(ls.t_pos(vertex[0], vertex[1], vertex[2])) #Add faces for face in faces: newface = ls.ioFace() newface.a = face[0] newface.b = face[1] newface.c = face[2] newface.idEn = face[3] newface.idMat = face[4] newface.idRs = face[5] model.faces.append(newface) #Save 3D model ls.CformatBIN().ExportBIN(filepath, model)
def BuildModel(filepath): model=ls.ioModel() #Add vertices for vertex in vertices: model.vertices.append(ls.t_pos(vertex[0],vertex[1],vertex[2])) #Add faces for face in faces: newface=ls.ioFace() newface.a=face[0] newface.b=face[1] newface.c=face[2] newface.idEn=face[3] newface.idMat=face[4] newface.idRs=face[5] model.faces.append(newface) #Save 3D model ls.CformatBIN().ExportBIN(filepath,model)
def CreerModele(filepath): """ Création du modèle 3D """ model=ls.ioModel() #Ajout des sommets for sommet in sommets: model.vertices.append(ls.t_pos(sommet[0],sommet[1],sommet[2])) #Ajout des faces for face in faces: newface=ls.ioFace() newface.a=face[0] newface.b=face[1] newface.c=face[2] newface.idEn=face[3] newface.idMat=face[4] newface.idRs=face[5] model.faces.append(newface) #sauvegarde du modèle ls.CformatBIN().ExportBIN(filepath,model)
def CreerModele(filepath): """ Création du modèle 3D """ model = ls.ioModel() #Ajout des sommets for sommet in sommets: model.vertices.append(ls.t_pos(sommet[0], sommet[1], sommet[2])) #Ajout des faces for face in faces: newface = ls.ioFace() newface.a = face[0] newface.b = face[1] newface.c = face[2] newface.idEn = face[3] newface.idMat = face[4] newface.idRs = face[5] model.faces.append(newface) #sauvegarde du modèle ls.CformatBIN().ExportBIN(filepath, model)