Skip to content

Commit 2c55d60

Browse files
committed
[!WIP] Preparing to move results to the original location
1 parent 03e0366 commit 2c55d60

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Refactoring grid to add transform
2+
3+
## TODO:
4+
- [ ] Rotation of pyvista grid
5+
- [ ] Rotation of pyvista meshes
6+
7+
## Questions:

gempy/core/data/geo_model.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ def surface_points_copy_transformed(self) -> SurfacePointsTable:
180180
points=og_sp.xyz,
181181
pivot=self.grid.corner_min
182182
)
183+
183184
og_sp.xyz_view = self.input_transform.apply(og_sp.xyz)
184185
return og_sp
185186

@@ -203,7 +204,14 @@ def orientations_copy_transformed(self) -> OrientationsTable:
203204
# ! This is not done
204205
og_or = self.orientations_copy
205206
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)
207215
og_or.grads_view = total_transform.transform_gradient(og_or.grads)
208216
return og_or
209217

0 commit comments

Comments
 (0)