File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
docs/developers_notes/dev_log Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Refactoring grid to add transform
2
+
3
+ ## TODO:
4
+ - [ ] Rotation of pyvista grid
5
+ - [ ] Rotation of pyvista meshes
6
+
7
+ ## Questions:
Original file line number Diff line number Diff line change @@ -180,6 +180,7 @@ def surface_points_copy_transformed(self) -> SurfacePointsTable:
180
180
points = og_sp .xyz ,
181
181
pivot = self .grid .corner_min
182
182
)
183
+
183
184
og_sp .xyz_view = self .input_transform .apply (og_sp .xyz )
184
185
return og_sp
185
186
@@ -203,7 +204,14 @@ def orientations_copy_transformed(self) -> OrientationsTable:
203
204
# ! This is not done
204
205
og_or = self .orientations_copy
205
206
total_transform : Transform = self .input_transform + self .grid .transform
206
- og_or .xyz_view = total_transform .apply (og_or .xyz )
207
+
208
+ og_or .xyz_view = self .grid .transform .apply_with_pivot (
209
+ points = og_or .xyz ,
210
+ pivot = self .grid .corner_min
211
+ )
212
+
213
+ og_or .xyz_view = self .input_transform .apply (og_or .xyz )
214
+ # og_or.xyz_view = total_transform.apply(og_or.xyz)
207
215
og_or .grads_view = total_transform .transform_gradient (og_or .grads )
208
216
return og_or
209
217
You can’t perform that action at this time.
0 commit comments