diff --git a/vedo/transformations.py b/vedo/transformations.py index f18d764d..01fdedef 100644 --- a/vedo/transformations.py +++ b/vedo/transformations.py @@ -423,12 +423,15 @@ def rotate(self, angle, axis=(1, 0, 0), point=(0, 0, 0), rad=False) -> Self: ``` ![](https://vedo.embl.es/images/feats/rotate_axis.png) """ + if all(axis == 0): + return self if not angle: return self if rad: anglerad = angle else: anglerad = np.deg2rad(angle) + axis = np.asarray(axis) / np.linalg.norm(axis) a = np.cos(anglerad / 2) b, c, d = -axis * np.sin(anglerad / 2)