Skip to content

Commit

Permalink
add axes bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomusy committed Jun 21, 2023
1 parent 2171d1a commit 91bf40c
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 119 deletions.
2 changes: 1 addition & 1 deletion docs/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

### Broken Examples
meshio_read.py

navier-stokes_lshape.py



29 changes: 8 additions & 21 deletions examples/other/dolfin/run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ python3 calc_surface_area.py
echo Running markmesh.py
python3 markmesh.py

echo Running scalemesh.py
python3 scalemesh.py
# echo Running scalemesh.py
# python3 scalemesh.py

echo Running pi_estimate.py
python3 pi_estimate.py
# echo Running pi_estimate.py
# python3 pi_estimate.py

echo Running submesh_boundary.py
python3 submesh_boundary.py
# echo Running submesh_boundary.py
# python3 submesh_boundary.py

echo Running demo_submesh.py
python3 demo_submesh.py
Expand All @@ -35,15 +35,9 @@ python3 elasticbeam.py
echo Running magnetostatics.py
python3 magnetostatics.py

echo Running curl2d.py
python3 curl2d.py

echo Running pointLoad.py
python3 pointLoad.py

echo Running meshEditor.py
python3 meshEditor.py

echo Running nodal_u.py
python3 nodal_u.py

Expand Down Expand Up @@ -73,8 +67,8 @@ python3 ex07_stokes-iterative.py


######################################
echo Running ft02_poisson_membrane.py
python3 ft02_poisson_membrane.py
# echo Running ft02_poisson_membrane.py
# python3 ft02_poisson_membrane.py

echo Running ft04_heat_gaussian.py
python3 ft04_heat_gaussian.py
Expand Down Expand Up @@ -109,10 +103,3 @@ python3 awefem.py
echo Running demo_eigenvalue.py
python3 demo_eigenvalue.py

echo Running demo_auto-adaptive-poisson.py
python3 demo_auto-adaptive-poisson.py





94 changes: 0 additions & 94 deletions examples/other/spherical_harmonics2.py

This file was deleted.

File renamed without changes.
File renamed without changes.
6 changes: 4 additions & 2 deletions vedo/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3832,11 +3832,13 @@ def _keypress(self, iren, event):
if key in ["minus", "KP_Subtract"]:
if not settings.use_parallel_projection and self.axes == 0:
self.axes -= 1 # jump ruler doesnt make sense in perspective mode
addons.add_global_axes(axtype=(self.axes - 1) % 15, c=None)
bns = self.renderer.ComputeVisiblePropBounds()
addons.add_global_axes(axtype=(self.axes - 1) % 15, c=None, bounds=bns)
else:
if not settings.use_parallel_projection and self.axes == 12:
self.axes += 1 # jump ruler doesnt make sense in perspective mode
addons.add_global_axes(axtype=(self.axes + 1) % 15, c=None)
bns = self.renderer.ComputeVisiblePropBounds()
addons.add_global_axes(axtype=(self.axes + 1) % 15, c=None, bounds=bns)
self.interactor.Render()

elif "KP_" in key or key in [
Expand Down
2 changes: 1 addition & 1 deletion vedo/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
_version = '2023.4.5+dev1'
_version = '2023.4.5+dev2'

0 comments on commit 91bf40c

Please sign in to comment.