diff --git a/README.md b/README.md index 6fadd687..d1ee879a 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,6 @@ To visualize the model we can use PyVista. ```python plotter = sg.Plotter() -plotter.enable_parallel_projection() _ = plotter.add_mesh( mesh, show_edges=True, @@ -96,7 +95,6 @@ mesh = sg.delaunay_3d(edge_source, target_sizes=0.2) ```python plotter = sg.Plotter() -plotter.enable_parallel_projection() _ = plotter.add_mesh( mesh, show_edges=True, diff --git a/src/skgmsh/__init__.py b/src/skgmsh/__init__.py index ea87cfcc..48065607 100644 --- a/src/skgmsh/__init__.py +++ b/src/skgmsh/__init__.py @@ -64,7 +64,6 @@ def frontal_delaunay_2d( >>> mesh = sg.frontal_delaunay_2d(edge_source, target_sizes=2.0) >>> plotter = sg.Plotter(off_screen=True) - >>> plotter.enable_parallel_projection() >>> _ = plotter.add_mesh(mesh, show_edges=True, line_width=1, color="aliceblue", lighting=False, edge_color="gray") >>> _ = plotter.add_mesh(edge_source, show_edges=True, line_width=4, color="gray") >>> plotter.show(cpos="xy", screenshot="docs/_static/frontal_delaunay_2d_01.png") @@ -146,7 +145,6 @@ def delaunay_3d( >>> mesh = sg.delaunay_3d(edge_source, target_sizes=0.2) >>> plotter = sg.Plotter(off_screen=True) - >>> plotter.enable_parallel_projection() >>> _ = plotter.add_mesh(mesh, show_edges=True, line_width=1, color="aliceblue", lighting=False, edge_color="gray") >>> _ = plotter.add_mesh(edge_source.extract_all_edges(), line_width=4, color="gray") >>> _ = plotter.add_axes( @@ -172,7 +170,6 @@ def delaunay_3d( ... edge_color="gray", ... ) >>> _ = plotter.add_mesh(edge_source.extract_all_edges(), line_width=4, color="gray") - >>> plotter.enable_parallel_projection() >>> _ = plotter.add_axes( ... box=True, ... box_args={ @@ -349,6 +346,7 @@ def __init__(self: PlotterBase, *args, **kwargs) -> None: # type: ignore[no-unt """ super().__init__(*args, **kwargs) + super().enable_parallel_projection() # type: ignore[misc] class Plotter(PlotterBase, pv.Plotter): # type: ignore[misc]