From ee9ae735964966679def379846f41323a24680de Mon Sep 17 00:00:00 2001 From: Jacob Kerstetter Date: Mon, 6 Oct 2025 11:43:39 -0400 Subject: [PATCH 1/2] fix for bug 1335500 --- src/ansys/geometry/core/_grpc/_services/v0/conversions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ansys/geometry/core/_grpc/_services/v0/conversions.py b/src/ansys/geometry/core/_grpc/_services/v0/conversions.py index 05bf4f065f..95f248cb04 100644 --- a/src/ansys/geometry/core/_grpc/_services/v0/conversions.py +++ b/src/ansys/geometry/core/_grpc/_services/v0/conversions.py @@ -369,6 +369,9 @@ def from_grpc_tess_to_pd(tess: GRPCTessellation) -> "pv.PolyData": import numpy as np import pyvista as pv + if len(tess.faces) == 0 or len(tess.vertices) == 0: + return pv.PolyData() + return pv.PolyData(var_inp=np.array(tess.vertices).reshape(-1, 3), faces=tess.faces) From 7d3fecd46a0c7c7e8a91c139e644d0eda9281212 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Mon, 6 Oct 2025 15:46:54 +0000 Subject: [PATCH 2/2] chore: adding changelog file 2284.fixed.md [dependabot-skip] --- doc/changelog.d/2284.fixed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/2284.fixed.md diff --git a/doc/changelog.d/2284.fixed.md b/doc/changelog.d/2284.fixed.md new file mode 100644 index 0000000000..7d7786c4b7 --- /dev/null +++ b/doc/changelog.d/2284.fixed.md @@ -0,0 +1 @@ +Empty tessellation data conversion