From: Guytri KASTANE Date: Fri, 26 Jul 2024 13:52:33 +0000 (+0200) Subject: bos #42618: add failed comment to .cxx and enable OFF format on script test X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Ftlpr%2F53%2Fhead;p=modules%2Fsmesh.git bos #42618: add failed comment to .cxx and enable OFF format on script test --- diff --git a/src/SMESHGUI/SMESHGUI_Meshio.cxx b/src/SMESHGUI/SMESHGUI_Meshio.cxx index 131d7cb77..fd3d99509 100644 --- a/src/SMESHGUI/SMESHGUI_Meshio.cxx +++ b/src/SMESHGUI/SMESHGUI_Meshio.cxx @@ -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)" }; diff --git a/test/SMESH_MeshioShapes.py b/test/SMESH_MeshioShapes.py index 077f40793..c5c31b61f 100644 --- a/test/SMESH_MeshioShapes.py +++ b/test/SMESH_MeshioShapes.py @@ -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