Skip to content

Commit

Permalink
switch clipping maxima (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzLamm authored Mar 10, 2024
1 parent d56445b commit 69a4d75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/surforama/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ def slide_points(self, value):

vol_shape = self.volume.shape

new_positions[:, 0] = np.clip(new_positions[:, 0], 0, vol_shape[2] - 1)
new_positions[:, 0] = np.clip(new_positions[:, 0], 0, vol_shape[0] - 1)
new_positions[:, 1] = np.clip(new_positions[:, 1], 0, vol_shape[1] - 1)
new_positions[:, 2] = np.clip(new_positions[:, 2], 0, vol_shape[0] - 1)
new_positions[:, 2] = np.clip(new_positions[:, 2], 0, vol_shape[2] - 1)

self.color_values = new_colors
self.vertices = new_positions
Expand Down

0 comments on commit 69a4d75

Please sign in to comment.