Skip to content

Commit

Permalink
Merge branch 'main' into fix/Mesh-Operations-5568
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelopez-ansys authored Dec 19, 2024
2 parents 720e5b5 + d28b8d3 commit 47c3f8e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/ansys/aedt/core/mechanical.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def assign_em_losses(
if not assignment:
allObjects = self.modeler.object_names
else:
allObjects = assignment[:]
allObjects = surface_objects + assignment[:]
surfaces = surface_objects
if map_frequency:
intr = [map_frequency]
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/aedt/core/modeler/cad/primitives_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def create_cylinder(self, orientation, origin, radius, height, num_sides=0, name
Returns
-------
bool or :class:`ansys.aedt.core.modeler.cad.object_3d.Object3d`
:class:`ansys.aedt.core.modeler.cad.object_3d.Object3d` or bool
3D object or ``False`` if it fails.
References
Expand Down
8 changes: 4 additions & 4 deletions src/ansys/aedt/core/visualization/plot/pyvista.py
Original file line number Diff line number Diff line change
Expand Up @@ -992,10 +992,10 @@ def _read_mesh_files(self, read_frames=False):
cad._cached_polydata = filedata
color_cad = [i / 255 for i in cad.color]
cad._cached_mesh = self.pv.add_mesh(cad._cached_polydata, color=color_cad, opacity=cad.opacity)
if self.meshes:
self.meshes += cad._cached_polydata
else:
self.meshes = cad._cached_polydata
# if self.meshes:
# self.meshes += cad._cached_polydata
# else:
# self.meshes = cad._cached_polydata
obj_to_iterate = [i for i in self._fields]
if read_frames:
for i in self.frames:
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/aedt/core/visualization/post/post_common_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -3437,7 +3437,7 @@ def plot_field(
Returns
-------
:class:`ansys.aedt.core.generic.plot.ModelPlotter`
:class:`ansys.aedt.core.visualization.plot.pyvista.ModelPlotter`
Model Object.
"""
intrinsics = self._app._check_intrinsics(intrinsics, setup=setup)
Expand Down

0 comments on commit 47c3f8e

Please sign in to comment.