@@ -98,13 +98,13 @@ def perform(self):
9898 self .original_mesh_points - translation , transformation )
9999
100100 # select mesh points inside bounding box
101- mesh_points = reference_frame_mesh_points [
102- ( reference_frame_mesh_points [:, 0 ] >= 0. )
103- & ( reference_frame_mesh_points [:, 0 ] <= 1. ) &
104- ( reference_frame_mesh_points [:, 1 ] >= 0. ) &
105- ( reference_frame_mesh_points [:, 1 ] <= 1. ) &
106- ( reference_frame_mesh_points [:, 2 ] >= 0. ) &
107- ( reference_frame_mesh_points [:, 2 ] <= 1. )]
101+ mesh_points = reference_frame_mesh_points [(
102+ reference_frame_mesh_points [:, 0 ] >= 0. ) & (
103+ reference_frame_mesh_points [:, 0 ] <= 1. ) & (
104+ reference_frame_mesh_points [:, 1 ] >= 0. ) & (
105+ reference_frame_mesh_points [:, 1 ] <= 1. ) & (
106+ reference_frame_mesh_points [:, 2 ] >= 0. ) & (
107+ reference_frame_mesh_points [:, 2 ] <= 1. )]
108108 (n_rows_mesh , n_cols_mesh ) = mesh_points .shape
109109
110110 # Initialization. In order to exploit the contiguity in memory the
@@ -156,13 +156,12 @@ def perform(self):
156156
157157 # merge non-shifted mesh points with shifted ones
158158 self .modified_mesh_points = np .copy (self .original_mesh_points )
159- self .modified_mesh_points [(reference_frame_mesh_points [:, 0 ] >= 0. )
160- & (reference_frame_mesh_points [:, 0 ] <= 1. ) &
161- (reference_frame_mesh_points [:, 1 ] >= 0. ) &
162- (reference_frame_mesh_points [:, 1 ] <= 1. ) &
163- (reference_frame_mesh_points [:, 2 ] >= 0. ) &
164- (reference_frame_mesh_points [:, 2 ] <=
165- 1. )] = new_mesh_points
159+ self .modified_mesh_points [(reference_frame_mesh_points [:, 0 ] >= 0. ) & (
160+ reference_frame_mesh_points [:, 0 ] <= 1.
161+ ) & (reference_frame_mesh_points [:, 1 ] >= 0. ) & (
162+ reference_frame_mesh_points [:, 1 ] <= 1. ) & (
163+ reference_frame_mesh_points [:, 2 ] >= 0. ) & (
164+ reference_frame_mesh_points [:, 2 ] <= 1. )] = new_mesh_points
166165
167166 @staticmethod
168167 def _transform_points (original_points , transformation ):
0 commit comments