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,46 @@
1
+ g trench_bottom
2
+ v 0 -0.5 -1
3
+ v 5 -0.5 -1
4
+ v 5 0.5 -1
5
+ v 0 0.5 -1
6
+ f 2 1 4
7
+ f 4 3 2
8
+ g trench_cap_for_volume
9
+ v 0 -0.5 0
10
+ v 5 -0.5 0
11
+ v 5 0.5 0
12
+ v 0 0.5 0
13
+ f 8 5 6
14
+ f 6 7 8
15
+ g trench_walls
16
+ v 0 -0.5 0
17
+ v 5 -0.5 0
18
+ v 5 -0.5 -1
19
+ v 0 -0.5 -1
20
+ v 5 -0.5 0
21
+ v 5 0.5 0
22
+ v 5 0.5 -1
23
+ v 5 -0.5 -1
24
+ v 5 0.5 0
25
+ v 0 0.5 0
26
+ v 0 0.5 -1
27
+ v 5 0.5 -1
28
+ v 0 0.5 0
29
+ v 0 -0.5 0
30
+ v 0 -0.5 -1
31
+ v 0 0.5 -1
32
+ f 9 10 11
33
+ f 9 11 12
34
+ f 13 14 15
35
+ f 13 15 16
36
+ f 17 18 19
37
+ f 17 19 20
38
+ f 21 22 23
39
+ f 21 23 24
40
+ g ground_surface
41
+ v -3 -3.5 0
42
+ v 8 -3.5 0
43
+ v 8 3.5 0
44
+ v -3 3.5 0
45
+ f 25 26 27
46
+ f 25 27 28
@@ -0,0 +1,35 @@
1
+ {
2
+ "surface_area_by_group": {
3
+ "trench_bottom": 5.0,
4
+ "trench_cap_for_volume": 5.0,
5
+ "trench_walls": 12.0,
6
+ "ground_surface": 77.0
7
+ },
8
+ "closed_surface_sets": {
9
+ "trench_closed_groups": [
10
+ "trench_walls",
11
+ "trench_bottom",
12
+ "trench_cap_for_volume"
13
+ ]
14
+ },
15
+ "volumes": {
16
+ "trench_from_surface": -1.6666666666666667,
17
+ "trench_flux_integral_div1": -1.6666666666666667
18
+ },
19
+ "footprint_area_top": 5.0,
20
+ "footprint_area_bottom": 5.0,
21
+ "width_top": 1.0,
22
+ "width_bottom": 1.0,
23
+ "noise": {
24
+ "enable": false,
25
+ "amplitude": 0.02,
26
+ "corr_length": 0.5,
27
+ "octaves": 2,
28
+ "gain": 0.5,
29
+ "seed": 42,
30
+ "apply_to": [
31
+ "trench_walls",
32
+ "trench_bottom"
33
+ ]
34
+ }
35
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "path_xy": [
3
+ [
4
+ 0,
5
+ 0
6
+ ],
7
+ [
8
+ 5,
9
+ 0
10
+ ]
11
+ ],
12
+ "width": 1.0,
13
+ "depth": 1.0,
14
+ "wall_slope": 0.0,
15
+ "ground_margin": 0.5,
16
+ "ground": {
17
+ "z0": 0.0,
18
+ "slope": [
19
+ 0.0,
20
+ 0.0
21
+ ],
22
+ "size_margin": 3.0
23
+ },
24
+ "pipes": [],
25
+ "boxes": [],
26
+ "spheres": [],
27
+ "noise": {
28
+ "enable": false
29
+ }
30
+ }
@@ -0,0 +1,46 @@
1
+ g trench_bottom
2
+ v 0 -0.5 -1
3
+ v 5 -0.5 -1
4
+ v 5 0.5 -1
5
+ v 0 0.5 -1
6
+ f 2 1 4
7
+ f 4 3 2
8
+ g trench_cap_for_volume
9
+ v 0 -0.5 0
10
+ v 5 -0.5 0
11
+ v 5 0.5 0
12
+ v 0 0.5 0
13
+ f 8 5 6
14
+ f 6 7 8
15
+ g trench_walls
16
+ v 0 -0.5 0
17
+ v 5 -0.5 0
18
+ v 5 -0.5 -1
19
+ v 0 -0.5 -1
20
+ v 5 -0.5 0
21
+ v 5 0.5 0
22
+ v 5 0.5 -1
23
+ v 5 -0.5 -1
24
+ v 5 0.5 0
25
+ v 0 0.5 0
26
+ v 0 0.5 -1
27
+ v 5 0.5 -1
28
+ v 0 0.5 0
29
+ v 0 -0.5 0
30
+ v 0 -0.5 -1
31
+ v 0 0.5 -1
32
+ f 9 10 11
33
+ f 9 11 12
34
+ f 13 14 15
35
+ f 13 15 16
36
+ f 17 18 19
37
+ f 17 19 20
38
+ f 21 22 23
39
+ f 21 23 24
40
+ g ground_surface
41
+ v -3 -3.5 0
42
+ v 8 -3.5 0
43
+ v 8 3.5 0
44
+ v -3 3.5 0
45
+ f 25 26 27
46
+ f 25 27 28