cffview 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,19 +1,20 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cffview
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: A Python CLI tool to inspect Ansys Fluent .cas.h5/.msh.h5 files without opening Fluent
5
5
  Author-email: preamer <1524477126@qq.com>
6
6
  License-Expression: BSD-3-Clause
7
7
  Project-URL: Repository, https://github.com/preamer/cffview
8
8
  Keywords: fluent,cfd,ansys,hdf5,mesh
9
9
  Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3.10
10
11
  Classifier: Programming Language :: Python :: 3.11
11
12
  Classifier: Programming Language :: Python :: 3.12
12
13
  Classifier: Programming Language :: Python :: 3.13
13
14
  Classifier: Programming Language :: Python :: 3.14
14
15
  Classifier: Topic :: Scientific/Engineering
15
16
  Classifier: Environment :: Console
16
- Requires-Python: >=3.11
17
+ Requires-Python: >=3.10
17
18
  Description-Content-Type: text/markdown
18
19
  License-File: LICENSE
19
20
  Requires-Dist: h5py>=3.16.0
@@ -4,15 +4,16 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "cffview"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "A Python CLI tool to inspect Ansys Fluent .cas.h5/.msh.h5 files without opening Fluent"
9
9
  readme = "README.md"
10
- requires-python = ">=3.11"
10
+ requires-python = ">=3.10"
11
11
  authors = [{ name = "preamer", email = "1524477126@qq.com" }]
12
12
  keywords = ["fluent", "cfd", "ansys", "hdf5", "mesh"]
13
13
  license = "BSD-3-Clause"
14
14
  classifiers = [
15
15
  "Programming Language :: Python :: 3",
16
+ "Programming Language :: Python :: 3.10",
16
17
  "Programming Language :: Python :: 3.11",
17
18
  "Programming Language :: Python :: 3.12",
18
19
  "Programming Language :: Python :: 3.13",
@@ -404,9 +404,20 @@ def show_mesh(file_path: str) -> None:
404
404
  offsets = np.cumsum(nnodes) - nnodes
405
405
  pv_faces = np.insert(nodes, offsets, nnodes)
406
406
 
407
- mesh = pv.PolyData(pv_points, pv_faces)
407
+ mesh = pv.PolyData(
408
+ pv_points,
409
+ faces=pv_faces if dimension == 3 else None,
410
+ lines=pv_faces if dimension == 2 else None
411
+ )
408
412
  plotter = pv.Plotter()
409
- plotter.add_mesh(mesh, show_edges=True, color='cyan', line_width=2, smooth_shading=True, split_sharp_edges=True)
413
+ plotter.add_mesh(
414
+ mesh,
415
+ show_edges=True,
416
+ color='lightblue',
417
+ line_width=2,
418
+ smooth_shading=True,
419
+ split_sharp_edges=True,
420
+ )
410
421
  plotter.add_axes()
411
422
  plotter.show()
412
423
 
@@ -1,19 +1,20 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cffview
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: A Python CLI tool to inspect Ansys Fluent .cas.h5/.msh.h5 files without opening Fluent
5
5
  Author-email: preamer <1524477126@qq.com>
6
6
  License-Expression: BSD-3-Clause
7
7
  Project-URL: Repository, https://github.com/preamer/cffview
8
8
  Keywords: fluent,cfd,ansys,hdf5,mesh
9
9
  Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3.10
10
11
  Classifier: Programming Language :: Python :: 3.11
11
12
  Classifier: Programming Language :: Python :: 3.12
12
13
  Classifier: Programming Language :: Python :: 3.13
13
14
  Classifier: Programming Language :: Python :: 3.14
14
15
  Classifier: Topic :: Scientific/Engineering
15
16
  Classifier: Environment :: Console
16
- Requires-Python: >=3.11
17
+ Requires-Python: >=3.10
17
18
  Description-Content-Type: text/markdown
18
19
  License-File: LICENSE
19
20
  Requires-Dist: h5py>=3.16.0
File without changes
File without changes
File without changes
File without changes
File without changes