Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/1128.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix: Plotting issues
4 changes: 0 additions & 4 deletions src/ansys/meshing/prime/core/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down
Loading