diff --git a/README.md b/README.md index 51d0fb26..14cc7bd2 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,7 @@ To visualize the model we can use PyVista. >>> _ = plotter.add_points( ... edge_source.points, style="points", point_size=20, color="red" ... ) + >>> plotter.enable_parallel_projection() >>> plotter.show(cpos="xy") ``` @@ -61,7 +62,6 @@ We can also generate a 3D mesh. >>> _ = plotter.add_mesh(mesh.shrink(0.95), show_edges=True, line_width=4, color="white", lighting=False) >>> _ = plotter.add_mesh(edge_source.extract_all_edges(), line_width=4, color="red") >>> _ = plotter.add_points(edge_source.points, style="points", point_size=20, color="red") - >>> plotter.enable_anti_aliasing() >>> plotter.enable_parallel_projection() >>> plotter.show() ``` diff --git a/frontal_delaunay_2d_01.png b/frontal_delaunay_2d_01.png index da9c7039..d4645862 100644 Binary files a/frontal_delaunay_2d_01.png and b/frontal_delaunay_2d_01.png differ diff --git a/src/pvgmsh/__init__.py b/src/pvgmsh/__init__.py index 8f7b1b31..2abf0f49 100644 --- a/src/pvgmsh/__init__.py +++ b/src/pvgmsh/__init__.py @@ -63,9 +63,9 @@ def frontal_delaunay_2d( N Arrays: 0 >>> plotter = pv.Plotter(off_screen=True) - >>> _ = plotter.add_mesh(mesh, show_edges=True, line_width=4, color="white", lighting=False) - >>> _ = plotter.add_mesh(edge_source, show_edges=True, line_width=4, color="red") - >>> _ = plotter.add_points(edge_source.points, style="points", point_size=20, color="red") + >>> _ = plotter.add_mesh(mesh, show_edges=True, line_width=2, color="white", lighting=False) + >>> _ = plotter.add_mesh(edge_source, show_edges=True, line_width=2, color="red") + >>> _ = plotter.add_points(edge_source.points, style="points", point_size=10, color="red") >>> plotter.show(cpos="xy", screenshot="frontal_delaunay_2d_01.png") """ points = edge_source.points