Skip to content

Commit 072d16c

Browse files
committed
docs: update model from map
1 parent 37792a3 commit 072d16c

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

examples/4_advanced/_model_from_geological_map.py renamed to examples/4_advanced/plot_model_from_geological_map.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
origin=origin,
118118
maximum=maximum,
119119
)
120-
120+
processor.foliation_properties["supergroup_0"] = {"regularisation": 1.0}
121121
##############################
122122
# The process input data can be used to directly build a geological model
123123

@@ -138,8 +138,7 @@
138138

139139

140140
view = Loop3DView(model)
141-
view.add_model_surfaces()
142-
view.rotation = [-37.965614318847656, 13.706363677978516, 3.110347032546997]
141+
view.plot_model_surfaces()
143142
view.display()
144143

145144
##############################
@@ -167,11 +166,18 @@
167166
fault_locations=fault_locations,
168167
fault_properties=fault_properties,
169168
)
170-
169+
processor.foliation_properties['supergroup_0']['regularisation'] = 1.0
171170
model = GeologicalModel.from_processor(processor)
172171
model.update()
173172

174173
view = Loop3DView(model)
175-
view.add_model_surfaces()
176-
view.rotation = [-37.965614318847656, 13.706363677978516, 3.110347032546997]
174+
view.plot_model_surfaces()
177175
view.display()
176+
177+
##############################
178+
# Visualise stratigraphic column
179+
### ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
180+
from LoopStructural.visualisation import StratigraphicColumnView
181+
182+
scv = StratigraphicColumnView(model)
183+
scv.plot()

0 commit comments

Comments
 (0)