@@ -36,7 +36,7 @@ from ansys.geometry.core.connection.defaults import GEOMETRY_SERVICE_DOCKER_IMAG
3636from ansys.geometry.core.connection.docker_instance import LocalDockerInstance
3737from ansys.geometry.core.math import Point2D
3838from ansys.geometry.core.misc import UNITS
39- from ansys.geometry.core.plotting import PlotterHelper
39+ from ansys.geometry.core.plotting import GeomPlotter
4040from ansys.geometry.core.sketch import Sketch
4141```
4242
@@ -158,25 +158,26 @@ You can simply plot one of the created objects.
158158
159159```{code-cell} ipython3
160160
161- plotter = PlotterHelper ()
162- plotter.plot (box_body2)
161+ plotter = GeomPlotter ()
162+ plotter.show (box_body2)
163163```
164164
165165You can plot the whole list of objects.
166166
167167```{code-cell} ipython3
168168
169- plotter = PlotterHelper ()
170- plotter.plot (plot_list)
169+ plotter = GeomPlotter ()
170+ plotter.show (plot_list)
171171```
172172
173173The Python visualizer is used by default. However, you can also use
174174[trame](https://kitware.github.io/trame/index.html) for visualization.
175175
176176```python
177177
178- plotter = PlotterHelper(use_trame=True)
179- plotter.plot(plot_list)
178+ plotter = GeomPlotter
179+ (use_trame=True)
180+ plotter.show(plot_list)
180181```
181182
182183## Clip objects
@@ -187,7 +188,7 @@ intersects the target object.
187188```{code-cell} ipython
188189
189190from ansys.geometry.core.math import Plane, Point3D
190- ph = PlotterHelper ()
191+ pl = GeomPlotter ()
191192
192193# Define PyAnsys Geometry box
193194box2 = Sketch()
@@ -199,8 +200,8 @@ origin = Point3D([-10., 20., 5.], UNITS.m)
199200plane = Plane(origin=origin, direction_x=[1, 1, 1], direction_y=[-1, 0, 1])
200201
201202# Add the object with the clipping plane
202- ph.add (box_body2, clipping_plane=plane)
203- ph.plot ()
203+ pl.plot (box_body2, clipping_plane=plane)
204+ pl.show ()
204205```
205206
206207## Select objects interactively
@@ -210,10 +211,10 @@ This enables you to pick objects for subsequent script manipulation.
210211
211212```{code-cell} ipython3
212213
213- plotter = PlotterHelper (allow_picking=True)
214+ plotter = GeomPlotter (allow_picking=True)
214215
215216# Plotter returns picked bodies
216- picked_list = plotter.plot (plot_list)
217+ picked_list = plotter.show (plot_list)
217218print(picked_list)
218219```
219220
0 commit comments