Skip to content

Commit

Permalink
Extended the faults to cover the entire region.
Browse files Browse the repository at this point in the history
  • Loading branch information
rserrano committed Feb 22, 2017
1 parent 324796d commit dda1629
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion geomodelr/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ def __init__( self, geolojson ):

# Obtain the possible farthest cuts to add triangles towards them.
bbox = self.geojson['bbox']
cuts = [shared.line_side(base_line, [bbox[0:3]]), shared.line_side(base_line, [bbox[3:6]])]
all_cuts = [shared.line_side(base_line, [bbox[0:3]]), shared.line_side(base_line, [bbox[3:6]]),
shared.line_side(base_line, [[bbox[0], bbox[4], bbox[2]]]), shared.line_side(base_line, [[bbox[3], bbox[1], bbox[5]]])]


cuts = [min(all_cuts), max(all_cuts)]

super(GeologicalModel, self).__init__(cuts, list(base_point), list(direction), geomap, topography, sections)
self.make_matches()
Expand Down

0 comments on commit dda1629

Please sign in to comment.