|
6 | 6 | """ |
7 | 7 |
|
8 | 8 | from LoopStructural import GeologicalModel |
| 9 | +from LoopStructural.modelling.features import fold |
9 | 10 | from LoopStructural.visualisation import Loop3DView, RotationAnglePlotter |
10 | 11 | from LoopStructural.datasets import load_laurent2016 |
11 | 12 | import pandas as pd |
|
36 | 37 | model.set_model_data(data) |
37 | 38 | s2 = model.create_and_add_fold_frame("s2", nelements=10000, buffer=0.5, solver="lu", damp=True) |
38 | 39 | viewer = Loop3DView(model) |
39 | | -viewer.add_scalar_field(s2[0], cmap="prism") |
40 | | -viewer.add_isosurface(s2[0], slices=[0, 1]) |
41 | | -viewer.add_data(s2[0]) |
42 | | -viewer.rotate(rotation) |
| 40 | +viewer.plot_scalar_field(s2[0], cmap="prism") |
| 41 | +viewer.plot_surface(s2[0], [0, 1]) |
| 42 | +viewer.plot_data(s2[0]) |
43 | 43 | viewer.display() |
44 | 44 |
|
45 | 45 |
|
|
48 | 48 | # ~~~~~~~~~~~~ |
49 | 49 | # |
50 | 50 |
|
51 | | -s1 = model.create_and_add_folded_fold_frame("s1", av_fold_axis=True, nelements=50000, buffer=0.3) |
| 51 | +s1 = model.create_and_add_folded_fold_frame( |
| 52 | + "s1", fold_frame=s2, av_fold_axis=True, nelements=50000, buffer=0.3, limb_wl=4 |
| 53 | +) |
52 | 54 |
|
53 | 55 |
|
54 | 56 | viewer = Loop3DView(model) |
55 | | -viewer.add_scalar_field(s1[0], cmap="prism") |
56 | | -viewer.rotate([-69.11979675292969, 15.704944610595703, 6.00014591217041]) |
| 57 | +viewer.plot_scalar_field(s1[0], cmap="prism") |
57 | 58 | viewer.display() |
58 | 59 |
|
59 | 60 | ###################################################################### |
|
77 | 78 |
|
78 | 79 | s0 = model.create_and_add_folded_foliation( |
79 | 80 | "s0", |
| 81 | + fold_frame=s1, |
80 | 82 | av_fold_axis=True, |
81 | 83 | nelements=50000, |
82 | 84 | buffer=0.2, |
83 | 85 | ) |
84 | 86 |
|
85 | 87 | viewer = Loop3DView(model) |
86 | | -viewer.add_scalar_field(s0, cmap="tab20") |
87 | | -viewer.rotate([-69.11979675292969, 15.704944610595703, 6.00014591217041]) |
| 88 | +viewer.plot_scalar_field(s0, cmap="tab20") |
88 | 89 | viewer.display() |
89 | 90 |
|
90 | 91 | ###################################################################### |
|
102 | 103 | # ax[1].plot(s0['limb_svariogram'].lags,s1['limb_svariogram'].variogram,'bo') |
103 | 104 |
|
104 | 105 | viewer = Loop3DView(model) |
105 | | -viewer.add_isosurface(s0, nslices=10, paint_with=s0, cmap="tab20") |
| 106 | +viewer.plot_surface(s0, 10, paint_with=s0, cmap="tab20") |
106 | 107 | # viewer.add_data(s0) |
107 | 108 | # viewer.add_fold(s0['fold'],locations=s0['support'].barycentre[::80]) |
108 | | -viewer.rotate([-69.11979675292969, 15.704944610595703, 6.00014591217041]) |
109 | 109 | viewer.display() |
0 commit comments