Skip to content

Commit

Permalink
fix: fault support resized for all faults
Browse files Browse the repository at this point in the history
uses the extent of the data points.
  • Loading branch information
Lachlan Grose committed Nov 12, 2021
1 parent ab4f5ea commit 63ea5ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 5 additions & 4 deletions LoopStructural/modelling/core/geological_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1255,12 +1255,13 @@ def create_and_add_fault(self,
fault_slip_vector,
minor_axis=minor_axis,
major_axis=major_axis,
intermediate_axis=intermediate_axis
intermediate_axis=intermediate_axis,
points=kwargs.get('points',None)
)

if minor_axis == None or major_axis == None or intermediate_axis == None:
fault_frame_builder.origin = self.bounding_box[0,:]
fault_frame_builder.maximum = self.bounding_box[1,:]
# if minor_axis == None or major_axis == None or intermediate_axis == None:
# fault_frame_builder.origin = self.bounding_box[0,:]
# fault_frame_builder.maximum = self.bounding_box[1,:]
if 'force_mesh_geometry' not in kwargs:
fault_frame_builder.set_mesh_geometry(kwargs.get('fault_buffer',0.2),0)#,
#np.rad2deg(np.arccos(np.dot(fault_normal_vector[:2],np.array([0,1])))))
Expand Down
1 change: 0 additions & 1 deletion LoopStructural/modelling/fault/fault_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ def create_data_from_geometry(self,
# self.name, strike_vector[0], strike_vector[1], strike_vector[2], 2]
self.add_data_from_data_frame(data)
self.update_geometry(data[['X','Y','Z']].to_numpy())

def set_mesh_geometry(self,buffer,rotation):
"""set the mesh geometry
Expand Down

0 comments on commit 63ea5ec

Please sign in to comment.