trenchfoot 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of trenchfoot might be problematic. Click here for more details.

Files changed (69) hide show
  1. trenchfoot/Dockerfile +5 -0
  2. trenchfoot/README.md +125 -0
  3. trenchfoot/__init__.py +67 -0
  4. trenchfoot/generate_scenarios.py +667 -0
  5. trenchfoot/gmsh_sloped_trench_mesher.py +508 -0
  6. trenchfoot/plot_mesh.py +126 -0
  7. trenchfoot/render_colors.py +59 -0
  8. trenchfoot/scenarios/S01_straight_vwalls/meshes/trench_scene_culled.obj +46 -0
  9. trenchfoot/scenarios/S01_straight_vwalls/metrics.json +35 -0
  10. trenchfoot/scenarios/S01_straight_vwalls/point_clouds/culled/resolution0p050.pth +0 -0
  11. trenchfoot/scenarios/S01_straight_vwalls/point_clouds/full/resolution0p050.pth +0 -0
  12. trenchfoot/scenarios/S01_straight_vwalls/preview.png +0 -0
  13. trenchfoot/scenarios/S01_straight_vwalls/preview_oblique.png +0 -0
  14. trenchfoot/scenarios/S01_straight_vwalls/preview_side.png +0 -0
  15. trenchfoot/scenarios/S01_straight_vwalls/preview_top.png +0 -0
  16. trenchfoot/scenarios/S01_straight_vwalls/scene.json +30 -0
  17. trenchfoot/scenarios/S01_straight_vwalls/trench_scene.obj +46 -0
  18. trenchfoot/scenarios/S01_straight_vwalls/volumetric/trench_volume.msh +1017 -0
  19. trenchfoot/scenarios/S02_straight_slope_pipe/meshes/trench_scene_culled.obj +60 -0
  20. trenchfoot/scenarios/S02_straight_slope_pipe/metrics.json +38 -0
  21. trenchfoot/scenarios/S02_straight_slope_pipe/point_clouds/culled/resolution0p050.pth +0 -0
  22. trenchfoot/scenarios/S02_straight_slope_pipe/point_clouds/full/resolution0p050.pth +0 -0
  23. trenchfoot/scenarios/S02_straight_slope_pipe/preview.png +0 -0
  24. trenchfoot/scenarios/S02_straight_slope_pipe/preview_oblique.png +0 -0
  25. trenchfoot/scenarios/S02_straight_slope_pipe/preview_side.png +0 -0
  26. trenchfoot/scenarios/S02_straight_slope_pipe/preview_top.png +0 -0
  27. trenchfoot/scenarios/S02_straight_slope_pipe/scene.json +39 -0
  28. trenchfoot/scenarios/S02_straight_slope_pipe/trench_scene.obj +14404 -0
  29. trenchfoot/scenarios/S02_straight_slope_pipe/volumetric/trench_volume.msh +2389 -0
  30. trenchfoot/scenarios/S03_L_slope_two_pipes_box/meshes/trench_scene_culled.obj +87 -0
  31. trenchfoot/scenarios/S03_L_slope_two_pipes_box/metrics.json +42 -0
  32. trenchfoot/scenarios/S03_L_slope_two_pipes_box/point_clouds/culled/resolution0p050.pth +0 -0
  33. trenchfoot/scenarios/S03_L_slope_two_pipes_box/point_clouds/full/resolution0p050.pth +0 -0
  34. trenchfoot/scenarios/S03_L_slope_two_pipes_box/preview.png +0 -0
  35. trenchfoot/scenarios/S03_L_slope_two_pipes_box/preview_oblique.png +0 -0
  36. trenchfoot/scenarios/S03_L_slope_two_pipes_box/preview_side.png +0 -0
  37. trenchfoot/scenarios/S03_L_slope_two_pipes_box/preview_top.png +0 -0
  38. trenchfoot/scenarios/S03_L_slope_two_pipes_box/scene.json +68 -0
  39. trenchfoot/scenarios/S03_L_slope_two_pipes_box/trench_scene.obj +28803 -0
  40. trenchfoot/scenarios/S03_L_slope_two_pipes_box/volumetric/trench_volume.msh +4463 -0
  41. trenchfoot/scenarios/S04_U_slope_multi_noise/meshes/trench_scene_culled.obj +150 -0
  42. trenchfoot/scenarios/S04_U_slope_multi_noise/metrics.json +46 -0
  43. trenchfoot/scenarios/S04_U_slope_multi_noise/preview.png +0 -0
  44. trenchfoot/scenarios/S04_U_slope_multi_noise/preview_oblique.png +0 -0
  45. trenchfoot/scenarios/S04_U_slope_multi_noise/preview_side.png +0 -0
  46. trenchfoot/scenarios/S04_U_slope_multi_noise/preview_top.png +0 -0
  47. trenchfoot/scenarios/S04_U_slope_multi_noise/scene.json +79 -0
  48. trenchfoot/scenarios/S04_U_slope_multi_noise/trench_scene.obj +49402 -0
  49. trenchfoot/scenarios/S04_U_slope_multi_noise/volumetric/trench_volume.msh +7610 -0
  50. trenchfoot/scenarios/S05_wide_slope_pair/metrics.json +42 -0
  51. trenchfoot/scenarios/S05_wide_slope_pair/preview_oblique.png +0 -0
  52. trenchfoot/scenarios/S05_wide_slope_pair/preview_side.png +0 -0
  53. trenchfoot/scenarios/S05_wide_slope_pair/preview_top.png +0 -0
  54. trenchfoot/scenarios/S05_wide_slope_pair/scene.json +71 -0
  55. trenchfoot/scenarios/S05_wide_slope_pair/trench_scene.obj +28803 -0
  56. trenchfoot/scenarios/S06_bumpy_wide_loop/metrics.json +43 -0
  57. trenchfoot/scenarios/S06_bumpy_wide_loop/preview_oblique.png +0 -0
  58. trenchfoot/scenarios/S06_bumpy_wide_loop/preview_side.png +0 -0
  59. trenchfoot/scenarios/S06_bumpy_wide_loop/preview_top.png +0 -0
  60. trenchfoot/scenarios/S06_bumpy_wide_loop/scene.json +82 -0
  61. trenchfoot/scenarios/S06_bumpy_wide_loop/trench_scene.obj +35084 -0
  62. trenchfoot/scenarios/SUMMARY.json +159 -0
  63. trenchfoot/scene_spec_example.json +74 -0
  64. trenchfoot/trench_scene_generator_v3.py +798 -0
  65. trenchfoot-0.1.0.dist-info/METADATA +104 -0
  66. trenchfoot-0.1.0.dist-info/RECORD +69 -0
  67. trenchfoot-0.1.0.dist-info/WHEEL +4 -0
  68. trenchfoot-0.1.0.dist-info/entry_points.txt +3 -0
  69. trenchfoot-0.1.0.dist-info/licenses/LICENSE +661 -0
@@ -0,0 +1,150 @@
1
+ g trench_bottom
2
+ v 0 -0.2 -2.00518927
3
+ v 6.2 -0.2 -2.00430799
4
+ v 6.2 4.2 -2.00476797
5
+ v 0 4.2 -1.99784168
6
+ v 0 3.8 -2.00567425
7
+ v 5.8 3.8 -1.99467523
8
+ v 5.8 0.2 -1.99215381
9
+ v 0 0.2 -1.9995805
10
+ f 2 1 8
11
+ f 5 4 3
12
+ f 6 5 3
13
+ f 6 3 2
14
+ f 7 6 2
15
+ f 8 7 2
16
+ g trench_cap_for_volume
17
+ v 0 -0.7 0
18
+ v 6.7 -0.7 0
19
+ v 6.7 4.7 0
20
+ v 0 4.7 0
21
+ v 0 3.3 0
22
+ v 5.3 3.3 0
23
+ v 5.3 0.7 0
24
+ v 0 0.7 0
25
+ f 16 9 10
26
+ f 11 12 13
27
+ f 11 13 14
28
+ f 10 11 14
29
+ f 10 14 15
30
+ f 10 15 16
31
+ g trench_walls
32
+ v 0 -0.704301535 -0.00107538372
33
+ v 6.7 -0.699177785 0.000205553794
34
+ v 6.2 -0.195820633 -1.99895516
35
+ v 0 -0.194965665 -1.99874142
36
+ v 6.69917778 -0.7 0.000205553794
37
+ v 6.7025306 4.7 -0.00063264946
38
+ v 6.19537439 4.2 -1.9988436
39
+ v 6.19582063 -0.2 -1.99895516
40
+ v 6.7 4.7025306 -0.00063264946
41
+ v 0 4.69146397 0.00213400671
42
+ v 0 4.20209388 -2.00052347
43
+ v 6.2 4.19537439 -1.9988436
44
+ v 0.00879873505 4.7 0
45
+ v 0.00392523858 3.3 0
46
+ v 0.00567424534 3.8 -2
47
+ v -0.00215832092 4.2 -2
48
+ v 0 3.30380804 0.000952010193
49
+ v 5.3 3.28461281 -0.00384679789
50
+ v 5.8 3.79483421 -2.00129145
51
+ v 0 3.80550483 -1.99862379
52
+ v 5.28461281 3.3 -0.00384679789
53
+ v 5.30013719 0.7 3.42969212e-05
54
+ v 5.79238808 0.2 -2.00190298
55
+ v 5.79483421 3.8 -2.00129145
56
+ v 5.3 0.699862812 3.42969212e-05
57
+ v 0 0.696903516 0.000774121011
58
+ v 0 0.200406974 -2.00010174
59
+ v 5.8 0.207611924 -2.00190298
60
+ v 0.0031917827 0.7 0
61
+ v -0.00443392067 -0.7 0
62
+ v 0.00518927424 -0.2 -2
63
+ v -0.000419499058 0.2 -2
64
+ f 17 18 19
65
+ f 17 19 20
66
+ f 21 22 23
67
+ f 21 23 24
68
+ f 25 26 27
69
+ f 25 27 28
70
+ f 29 30 31
71
+ f 29 31 32
72
+ f 33 34 35
73
+ f 33 35 36
74
+ f 37 38 39
75
+ f 37 39 40
76
+ f 41 42 43
77
+ f 41 43 44
78
+ f 45 46 47
79
+ f 45 47 48
80
+ g ground_surface
81
+ v -5 -5.7 0
82
+ v 11.7 -5.7 0
83
+ v 11.7 9.7 0
84
+ v -5 9.7 0
85
+ f 49 50 51
86
+ f 49 51 52
87
+ g pipe0_pipe_side
88
+ v 0.4375 -0.177711381 -0.988352181
89
+ v 0.4375 -0.178482362 -1
90
+ v 0.625 -0.172021173 -1
91
+ v 2.6875 -0.184444708 -0.987910855
92
+ v 2.6875 -0.184977795 -1
93
+ v 2.875 -0.177609797 -1
94
+ v 4.9375 -0.198055482 -0.987018758
95
+ v 4.9375 -0.198330908 -1
96
+ v 5.125 -0.188569094 -1
97
+ v 7.9375 0.189906556 -0.999675693
98
+ v 8.125 0.190697012 -0.999649816
99
+ v 8.125 0.189976805 -0.987548262
100
+ f 53 55 54
101
+ f 56 58 57
102
+ f 59 61 60
103
+ f 62 63 64
104
+ g pipe0_pipe_cap_pos
105
+ v 8.5 0 -1
106
+ v 8.5 0.100002642 -0.85033547
107
+ v 8.5 0.09 -0.844115427
108
+ f 65 66 67
109
+ g pipe1_pipe_side
110
+ v 6.04294274 2.93757057 -0.995336822
111
+ v 6.04780334 2.94243117 -0.994646357
112
+ v 6.05268609 2.94731391 -0.9944427
113
+ v 6.05756519 2.95219301 -0.994724965
114
+ v 6.06241525 2.95704308 -0.995489114
115
+ v 6.07193001 2.96655784 -0.99843217
116
+ v 5.9692302 3.01117194 -0.994739688
117
+ v 5.97411574 3.01605748 -0.993985187
118
+ v 5.97902913 3.02097087 -0.993753324
119
+ v 5.98393955 3.02588129 -0.994049193
120
+ v 5.98881569 3.03075743 -0.99487256
121
+ v 5.99362634 3.03556808 -0.996217778
122
+ v 5.99834095 3.04028268 -0.998073845
123
+ v 6.00293025 3.04487199 -1.0004246
124
+ v 5.00850276 3.96552537 -1.0076735
125
+ v 5.01280664 3.96982925 -1.00673721
126
+ v 5.03440005 3.99142266 -1.00820372
127
+ v 4.93846914 4.04280565 -0.999426728
128
+ v 4.96198542 4.06632193 -0.999371166
129
+ v 4.96665714 4.07099366 -1.0006411
130
+ f 68 74 75
131
+ f 68 75 69
132
+ f 69 75 76
133
+ f 69 76 70
134
+ f 70 76 77
135
+ f 70 77 71
136
+ f 71 77 78
137
+ f 71 78 72
138
+ f 72 78 79
139
+ f 73 80 81
140
+ f 82 85 83
141
+ f 84 86 87
142
+ g sphere0
143
+ v 2.10718124 3.94175473 -1.70940514
144
+ v 2.11141807 3.94259749 -1.7385271
145
+ v 2.1184341 3.91458792 -1.7385271
146
+ v 2.1184341 3.94399306 -1.7670854
147
+ v 2.12527956 3.91666447 -1.7670854
148
+ f 88 89 90
149
+ f 89 91 92
150
+ f 89 92 90
@@ -0,0 +1,46 @@
1
+ {
2
+ "surface_area_by_group": {
3
+ "trench_bottom": 6.401997366935536,
4
+ "trench_cap_for_volume": 22.400000000000006,
5
+ "trench_walls": 69.57049109221799,
6
+ "ground_surface": 257.17999999999995,
7
+ "pipe0_pipe_side": 10.207944973004551,
8
+ "pipe0_pipe_cap_neg": 0.10171494667745246,
9
+ "pipe0_pipe_cap_pos": 0.10171494667745246,
10
+ "pipe1_pipe_side": 3.1096748294101273,
11
+ "pipe1_pipe_cap_neg": 0.03139350202333453,
12
+ "pipe1_pipe_cap_pos": 0.03139350194229987,
13
+ "pipe2_pipe_side": 1.7073221002917578,
14
+ "pipe2_pipe_cap_neg": 0.020091840844461084,
15
+ "pipe2_pipe_cap_pos": 0.020091840844461098,
16
+ "sphere0": 1.1287038252737895
17
+ },
18
+ "closed_surface_sets": {
19
+ "trench_closed_groups": [
20
+ "trench_walls",
21
+ "trench_bottom",
22
+ "trench_cap_for_volume"
23
+ ]
24
+ },
25
+ "volumes": {
26
+ "trench_from_surface": -20.350257604893354,
27
+ "trench_flux_integral_div1": -20.350257604893347
28
+ },
29
+ "footprint_area_top": 22.400000000000006,
30
+ "footprint_area_bottom": 6.401997366935536,
31
+ "width_top": 1.4,
32
+ "width_bottom": 0.3999999999999999,
33
+ "noise": {
34
+ "enable": true,
35
+ "amplitude": 0.02,
36
+ "corr_length": 0.6,
37
+ "octaves": 2,
38
+ "gain": 0.6,
39
+ "seed": 13,
40
+ "apply_to": [
41
+ "trench_walls",
42
+ "trench_bottom",
43
+ "pipe*_pipe_side"
44
+ ]
45
+ }
46
+ }
@@ -0,0 +1,79 @@
1
+ {
2
+ "path_xy": [
3
+ [
4
+ 0,
5
+ 0
6
+ ],
7
+ [
8
+ 6,
9
+ 0
10
+ ],
11
+ [
12
+ 6,
13
+ 4
14
+ ],
15
+ [
16
+ 0,
17
+ 4
18
+ ]
19
+ ],
20
+ "width": 1.4,
21
+ "depth": 2.0,
22
+ "wall_slope": 0.25,
23
+ "ground_margin": 1.2,
24
+ "ground": {
25
+ "z0": 0.0,
26
+ "slope": [
27
+ 0.0,
28
+ 0.0
29
+ ],
30
+ "size_margin": 5.0
31
+ },
32
+ "pipes": [
33
+ {
34
+ "radius": 0.18,
35
+ "length": 9.0,
36
+ "angle_deg": 0,
37
+ "s_center": 0.25,
38
+ "z": -1.0,
39
+ "offset_u": 0.0
40
+ },
41
+ {
42
+ "radius": 0.1,
43
+ "length": 5.0,
44
+ "angle_deg": 45,
45
+ "s_center": 0.55,
46
+ "z": -1.1,
47
+ "offset_u": -0.2
48
+ },
49
+ {
50
+ "radius": 0.08,
51
+ "length": 3.5,
52
+ "angle_deg": -60,
53
+ "s_center": 0.75,
54
+ "z": -1.3,
55
+ "offset_u": 0.25
56
+ }
57
+ ],
58
+ "boxes": [],
59
+ "spheres": [
60
+ {
61
+ "radius": 0.3,
62
+ "s": 0.85,
63
+ "offset_u": -0.2
64
+ }
65
+ ],
66
+ "noise": {
67
+ "enable": true,
68
+ "amplitude": 0.02,
69
+ "corr_length": 0.6,
70
+ "octaves": 2,
71
+ "gain": 0.6,
72
+ "seed": 13,
73
+ "apply_to": [
74
+ "trench_walls",
75
+ "trench_bottom",
76
+ "pipe*_pipe_side"
77
+ ]
78
+ }
79
+ }