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,159 @@
1
+ {
2
+ "out_root": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios",
3
+ "preview_enabled": true,
4
+ "volumetric_requested": false,
5
+ "volumetric_available": false,
6
+ "mesh_characteristic_length": 0.3,
7
+ "scenarios": [
8
+ {
9
+ "name": "S01_straight_vwalls",
10
+ "directory": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S01_straight_vwalls",
11
+ "spec_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S01_straight_vwalls/scene.json",
12
+ "surface_obj": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S01_straight_vwalls/trench_scene.obj",
13
+ "metrics_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S01_straight_vwalls/metrics.json",
14
+ "preview_paths": [
15
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S01_straight_vwalls/preview_top.png",
16
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S01_straight_vwalls/preview_side.png",
17
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S01_straight_vwalls/preview_oblique.png"
18
+ ],
19
+ "preview_count": 3,
20
+ "object_counts": {
21
+ "pipes": 0,
22
+ "boxes": 0,
23
+ "spheres": 0
24
+ },
25
+ "footprint_top": 5.0,
26
+ "footprint_bottom": 5.0,
27
+ "trench_from_surface": -1.6666666666666667,
28
+ "volumetric_path": null,
29
+ "volumetric_lc": null,
30
+ "volumetric_error": null,
31
+ "pipe_clearances": []
32
+ },
33
+ {
34
+ "name": "S02_straight_slope_pipe",
35
+ "directory": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S02_straight_slope_pipe",
36
+ "spec_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S02_straight_slope_pipe/scene.json",
37
+ "surface_obj": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S02_straight_slope_pipe/trench_scene.obj",
38
+ "metrics_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S02_straight_slope_pipe/metrics.json",
39
+ "preview_paths": [
40
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S02_straight_slope_pipe/preview_top.png",
41
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S02_straight_slope_pipe/preview_side.png",
42
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S02_straight_slope_pipe/preview_oblique.png"
43
+ ],
44
+ "preview_count": 3,
45
+ "object_counts": {
46
+ "pipes": 1,
47
+ "boxes": 0,
48
+ "spheres": 0
49
+ },
50
+ "footprint_top": 7.199999999999999,
51
+ "footprint_bottom": 3.5999999999999996,
52
+ "trench_from_surface": -4.5,
53
+ "volumetric_path": null,
54
+ "volumetric_lc": null,
55
+ "volumetric_error": null,
56
+ "pipe_clearances": []
57
+ },
58
+ {
59
+ "name": "S03_L_slope_two_pipes_box",
60
+ "directory": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S03_L_slope_two_pipes_box",
61
+ "spec_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S03_L_slope_two_pipes_box/scene.json",
62
+ "surface_obj": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S03_L_slope_two_pipes_box/trench_scene.obj",
63
+ "metrics_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S03_L_slope_two_pipes_box/metrics.json",
64
+ "preview_paths": [
65
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S03_L_slope_two_pipes_box/preview_top.png",
66
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S03_L_slope_two_pipes_box/preview_side.png",
67
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S03_L_slope_two_pipes_box/preview_oblique.png"
68
+ ],
69
+ "preview_count": 3,
70
+ "object_counts": {
71
+ "pipes": 2,
72
+ "boxes": 1,
73
+ "spheres": 0
74
+ },
75
+ "footprint_top": 11.999999999999995,
76
+ "footprint_bottom": 6.600098785112241,
77
+ "trench_from_surface": -8.821211746773338,
78
+ "volumetric_path": null,
79
+ "volumetric_lc": null,
80
+ "volumetric_error": null,
81
+ "pipe_clearances": []
82
+ },
83
+ {
84
+ "name": "S04_U_slope_multi_noise",
85
+ "directory": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S04_U_slope_multi_noise",
86
+ "spec_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S04_U_slope_multi_noise/scene.json",
87
+ "surface_obj": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S04_U_slope_multi_noise/trench_scene.obj",
88
+ "metrics_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S04_U_slope_multi_noise/metrics.json",
89
+ "preview_paths": [
90
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S04_U_slope_multi_noise/preview_top.png",
91
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S04_U_slope_multi_noise/preview_side.png",
92
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S04_U_slope_multi_noise/preview_oblique.png"
93
+ ],
94
+ "preview_count": 3,
95
+ "object_counts": {
96
+ "pipes": 3,
97
+ "boxes": 0,
98
+ "spheres": 1
99
+ },
100
+ "footprint_top": 22.400000000000006,
101
+ "footprint_bottom": 6.401997366935536,
102
+ "trench_from_surface": -20.350257604893354,
103
+ "volumetric_path": null,
104
+ "volumetric_lc": null,
105
+ "volumetric_error": null,
106
+ "pipe_clearances": []
107
+ },
108
+ {
109
+ "name": "S05_wide_slope_pair",
110
+ "directory": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S05_wide_slope_pair",
111
+ "spec_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S05_wide_slope_pair/scene.json",
112
+ "surface_obj": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S05_wide_slope_pair/trench_scene.obj",
113
+ "metrics_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S05_wide_slope_pair/metrics.json",
114
+ "preview_paths": [
115
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S05_wide_slope_pair/preview_top.png",
116
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S05_wide_slope_pair/preview_side.png",
117
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S05_wide_slope_pair/preview_oblique.png"
118
+ ],
119
+ "preview_count": 3,
120
+ "object_counts": {
121
+ "pipes": 2,
122
+ "boxes": 1,
123
+ "spheres": 0
124
+ },
125
+ "footprint_top": 28.808998594189276,
126
+ "footprint_bottom": 26.504396832960197,
127
+ "trench_from_surface": -11.943502106756187,
128
+ "volumetric_path": null,
129
+ "volumetric_lc": null,
130
+ "volumetric_error": null,
131
+ "pipe_clearances": []
132
+ },
133
+ {
134
+ "name": "S06_bumpy_wide_loop",
135
+ "directory": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S06_bumpy_wide_loop",
136
+ "spec_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S06_bumpy_wide_loop/scene.json",
137
+ "surface_obj": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S06_bumpy_wide_loop/trench_scene.obj",
138
+ "metrics_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S06_bumpy_wide_loop/metrics.json",
139
+ "preview_paths": [
140
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S06_bumpy_wide_loop/preview_top.png",
141
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S06_bumpy_wide_loop/preview_side.png",
142
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S06_bumpy_wide_loop/preview_oblique.png"
143
+ ],
144
+ "preview_count": 3,
145
+ "object_counts": {
146
+ "pipes": 2,
147
+ "boxes": 0,
148
+ "spheres": 1
149
+ },
150
+ "footprint_top": 61.10535786473372,
151
+ "footprint_bottom": 53.20937308936425,
152
+ "trench_from_surface": -29.549085746556727,
153
+ "volumetric_path": null,
154
+ "volumetric_lc": null,
155
+ "volumetric_error": null,
156
+ "pipe_clearances": []
157
+ }
158
+ ]
159
+ }
@@ -0,0 +1,74 @@
1
+ {
2
+ "path_xy": [
3
+ [
4
+ 0.0,
5
+ 0.0
6
+ ],
7
+ [
8
+ 6.0,
9
+ 0.0
10
+ ],
11
+ [
12
+ 6.0,
13
+ 4.0
14
+ ]
15
+ ],
16
+ "width": 1.2,
17
+ "depth": 1.8,
18
+ "wall_slope": 0.15,
19
+ "ground_margin": 1.0,
20
+ "ground": {
21
+ "z0": 0.0,
22
+ "slope": [
23
+ 0.0,
24
+ 0.0
25
+ ],
26
+ "size_margin": 4.0
27
+ },
28
+ "pipes": [
29
+ {
30
+ "radius": 0.15,
31
+ "length": 8.0,
32
+ "angle_deg": 0,
33
+ "s_center": 0.35,
34
+ "z": -1.0,
35
+ "offset_u": 0.0
36
+ },
37
+ {
38
+ "radius": 0.1,
39
+ "length": 5.0,
40
+ "angle_deg": 90,
41
+ "s_center": 0.75,
42
+ "z": -0.9,
43
+ "offset_u": 0.2
44
+ }
45
+ ],
46
+ "boxes": [
47
+ {
48
+ "along": 0.8,
49
+ "across": 0.5,
50
+ "height": 0.4,
51
+ "s": 0.55,
52
+ "offset_u": 0.0
53
+ }
54
+ ],
55
+ "spheres": [
56
+ {
57
+ "radius": 0.25,
58
+ "s": 0.85,
59
+ "offset_u": -0.2
60
+ }
61
+ ],
62
+ "noise": {
63
+ "enable": true,
64
+ "amplitude": 0.01,
65
+ "corr_length": 0.5,
66
+ "octaves": 2,
67
+ "gain": 0.5,
68
+ "seed": 7,
69
+ "apply_to": [
70
+ "trench_walls",
71
+ "trench_bottom"
72
+ ]
73
+ }
74
+ }