Functions | |
| def | SetSObjName |
| def | ConvertMED2UNV |
Variables | |
| tuple | aPath = os.getenv('DATA_DIR') |
| tuple | aListDir = os.listdir(aPath) |
| list | aFileName = aListDir[iFile] |
| def SMESH_test5.ConvertMED2UNV | ( | thePath, | |
| theFile | |||
| ) |
Definition at line 43 of file SMESH_test5.py.
00044 : 00045 anInitFileName = thePath + theFile 00046 aMeshes,aResult = smesh.CreateMeshesFromMED(anInitFileName) 00047 print aResult, aMeshes 00048 00049 for iMesh in range(len(aMeshes)) : 00050 aMesh = aMeshes[iMesh] 00051 print aMesh.GetName(), 00052 aFileName = anInitFileName 00053 aFileName = os.path.basename(aFileName) 00054 aMesh.SetName(aFileName) 00055 print aMesh.GetName() 00056 00057 aOutPath = '/tmp/' 00058 aFileName = aOutPath + theFile + "." + str(iMesh) + ".unv" 00059 aMesh.ExportUNV(aFileName) 00060 aMesh = smesh.CreateMeshesFromUNV(aFileName) 00061 print aMesh.GetName(), 00062 os.remove(aFileName) 00063 aFileName = os.path.basename(aFileName) 00064 aMesh.SetName(aFileName) 00065 print aMesh.GetName()
| def SMESH_test5.SetSObjName | ( | theSObj, | |
| theName | |||
| ) |
Definition at line 36 of file SMESH_test5.py.
| tuple SMESH_test5::aFileName = aListDir[iFile] |
Definition at line 71 of file SMESH_test5.py.
Referenced by SMESH_Gen_i.CreateMeshesFromSTL(), SMESH_Gen_i.CreateMeshesFromUNV(), SMESH.FilterManager_i.DeleteLibrary(), SMESH_Mesh_i.ExportToMEDX(), SMESHGUI_FilterLibraryDlg.onApply(), DriverSTL_R_SMDS_Mesh.Perform(), DriverSTL_R_SMDS_Mesh.readAscii(), DriverSTL_R_SMDS_Mesh.readBinary(), ReadMed(), SMESH.setFileName(), DriverSTL_W_SMDS_Mesh.writeAscii(), and DriverSTL_W_SMDS_Mesh.writeBinary().
| tuple SMESH_test5.aListDir = os.listdir(aPath) |
Definition at line 67 of file SMESH_test5.py.
| tuple SMESH_test5.aPath = os.getenv('DATA_DIR') |
Definition at line 66 of file SMESH_test5.py.
Referenced by DriverSTL_R_SMDS_Mesh.Perform(), and SMESH_Mesh_i.PrepareForWriting().