Skip to content

Commit

Permalink
fix: added function for plotting structural frames
Browse files Browse the repository at this point in the history
plots data and -1,0,1 isovalues for each surface
  • Loading branch information
Lachlan Grose committed Feb 7, 2022
1 parent 9706f25 commit 69dbc6d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions LoopStructural/visualisation/model_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,12 @@ def add_fault(self, fault, step=100):
self.add_isosurface(fault, value=0, name=fault.name)
self.add_vector_field(fault, locations=self.model.regular_grid()[::step])

def add_structural_frame(self, frame, step=100, data=True, **kwargs):
for i in range(3):
self.add_isosurface(frame[i], slices=[-1,0,1],**kwargs)
if data:
self.add_data(frame[i])

def unfault_grid(self, feature, grid=None):
if grid is None:
grid = self.model.regular_grid()
Expand Down

0 comments on commit 69dbc6d

Please sign in to comment.