bos #42618: add failed comment to .cxx and enable OFF format on script test

This commit is contained in:
Guytri KASTANE 2024-07-26 15:52:33 +02:00
parent 84843d54ca
commit 20cf1c5f73
2 changed files with 14 additions and 14 deletions

View File

@ -133,37 +133,37 @@ const QStringList& SMESHGUI_Meshio::GetExportFileFilter()
{
static const QStringList filter = {
"Abaqus (*.inp)",
//"ANSYS msh (*.msh)",
//"ANSYS msh (*.msh)", // meshio KeyError: "Illegal ANSYS cell type 'line'
"AVS-UCD (*.avs)",
//"CGNS (*.cgns)",
//"CGNS (*.cgns)", // meshio IndexError: index 2 is out of bounds for axis 1 with size 2
"DOLFIN XML (*.xml)",
#if !defined(WIN32)
"Exodus (*.e *.exo)",
#endif
"FLAC3D (*.f3grid)",
//"FLAC3D (*.f3grid)", // meshio IndexError: Replacement index 3 out of range for positional args tuple
"Gmsh 2.2 (*.msh)",
//"Gmsh 4.0, and 4.1 (*.msh)",
//"H5M (*.h5m)",
//"H5M (*.h5m)", // meshio AttributeError: 'list' object has no attribute 'items'
"Kratos/MDPA (*.mdpa)",
"MED/Salome (*.med)",
"Medit (*.mesh *.meshb)",
"Nastran (*.bdf *fem *.nas)",
"Netgen(*.vol *.vol.gz)",
"OBJ (*.obj)",
// "OBJ (*.obj)", // meshio._exceptions.WriteError: Wavefront .obj files can only contain triangle or quad cells
#if !defined(WIN32)
"OFF (*.off)",
#endif
"PERMAS (*.post *.post.gz *.dato *.dato.gz)",
//"PLY (*.ply)",
//"PLY (*.ply)", // Export Warning: PLY doesn't support 64-bit integers. Casting down to 32-bit. Then import failed
"STL (*.stl)",
//"SU2 (*.su2)",
//"SVG, 2D output only (*.svg)",
//"Tecplot (*.dat)",
//"TetGen (*.node *.ele)",
//"UGRID (*.ugrid)",
//"SU2 (*.su2)", // meshio TypeError: cannot unpack non-iterable CellBlock object
//"SVG, 2D output only (*.svg)", // meshio._exceptions.WriteError: SVG can only handle flat 2D meshes
//"Tecplot (*.dat)", // meshio ValueError: need at least one array to concatenate
//"TetGen (*.node *.ele)", // never returns from meshio convert command
//"UGRID (*.ugrid)", // meshio AttributeError: 'list' object has no attribute 'reshape'
"VTK (*.vtk)",
"VTU (*.vtu)",
//"WKT, TIN (*.wkt)",
//"WKT, TIN (*.wkt)", // Export Warning: WTK only supports triangle cells. Skipping {", ".join(skip)} then import failed
"XDMF (*.xdmf *.xmf)"
};

View File

@ -116,7 +116,7 @@ def file_extensions():
'.nas',
# '.node', # never returns from meshio convert command
# '.obj', # meshio._exceptions.WriteError: Wavefront .obj files can only contain triangle or quad cells
# '.off', # failed on Windows only
'.off', # failed on Windows only
# '.ply', # Export Warning: PLY doesn't support 64-bit integers. Casting down to 32-bit. Then import failed
'.post',
'.post.gz',
@ -134,7 +134,7 @@ def file_extensions():
'.xml'
]
if platform.system() == 'Windows':
extensions = [ext for ext in extensions if not ext in ['.e', '.exo']] # needs to be digged out - presumably an issue about encoding.
extensions = [ext for ext in extensions if not ext in ['.e', '.exo', '.off']] # needs to be digged out - presumably an issue about encoding.
return extensions