diff --git a/doc/changelog.d/1128.miscellaneous.md b/doc/changelog.d/1128.miscellaneous.md new file mode 100644 index 0000000000..ce04b4b5ad --- /dev/null +++ b/doc/changelog.d/1128.miscellaneous.md @@ -0,0 +1 @@ +Fix: Plotting issues diff --git a/src/ansys/meshing/prime/core/mesh.py b/src/ansys/meshing/prime/core/mesh.py index ddc3d339f7..efc93801ba 100644 --- a/src/ansys/meshing/prime/core/mesh.py +++ b/src/ansys/meshing/prime/core/mesh.py @@ -326,7 +326,6 @@ def get_face_polydata( fcolor = np.array(self.get_face_color(part, ColorByType.ZONE)) colors = np.tile(fcolor, (surf.n_faces_strict, 1)) surf["colors"] = colors - surf.disp_mesh = self has_mesh = True if face_facet_res.topo_face_ids[index] > 0: display_mesh_type = DisplayMeshType.TOPOFACE @@ -388,7 +387,6 @@ def get_edge_polydata( ecolor = np.array(self.get_edge_color(edge_facet_res, index)) colors = np.tile(ecolor, (n_edges, 1)) edge["colors"] = colors - edge.disp_mesh = self if edge.n_points > 0: return MeshObjectPlot(part, edge) @@ -416,7 +414,6 @@ def get_spline_cp_polydata(self, part_id: int, spline_id: int) -> MeshObjectPlot fcolor = np.array([0, 0, 255]) colors = np.tile(fcolor, (surf.n_faces_strict, 1)) surf["colors"] = colors - surf.disp_mesh = self if surf.n_points > 0: return MeshObjectPlot(part, surf) @@ -444,7 +441,6 @@ def get_spline_surface_polydata(self, part_id: int, spline_id: int) -> MeshObjec fcolor = np.array(color_matrix[1]) colors = np.tile(fcolor, (surf.n_faces_strict, 1)) surf["colors"] = colors - surf.disp_mesh = self if surf.n_points > 0: return MeshObjectPlot(part, surf)