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,60 @@
1
+ g trench_bottom
2
+ v 0 -0.3 -1.5
3
+ v 6 -0.3 -1.5
4
+ v 6 0.3 -1.5
5
+ v 0 0.3 -1.5
6
+ f 2 1 4
7
+ f 4 3 2
8
+ g trench_cap_for_volume
9
+ v 0 -0.6 0
10
+ v 6 -0.6 0
11
+ v 6 0.6 0
12
+ v 0 0.6 0
13
+ f 8 5 6
14
+ f 6 7 8
15
+ g trench_walls
16
+ v 0 -0.6 0
17
+ v 6 -0.6 0
18
+ v 6 -0.3 -1.5
19
+ v 0 -0.3 -1.5
20
+ v 6 -0.6 0
21
+ v 6 0.6 0
22
+ v 6 0.3 -1.5
23
+ v 6 -0.3 -1.5
24
+ v 6 0.6 0
25
+ v 0 0.6 0
26
+ v 0 0.3 -1.5
27
+ v 6 0.3 -1.5
28
+ v 0 0.6 0
29
+ v 0 -0.6 0
30
+ v 0 -0.3 -1.5
31
+ v 0 0.3 -1.5
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.6 0
42
+ v 9 -3.6 0
43
+ v 9 3.6 0
44
+ v -3 3.6 0
45
+ f 25 26 27
46
+ f 25 27 28
47
+ g pipe0_pipe_cap_neg
48
+ v -0.5 0 -0.7
49
+ v -0.5 -0.00981046938 -0.849678838
50
+ v -0.5 -2.7554553e-17 -0.85
51
+ v -0.5 0.00981046938 -0.849678838
52
+ f 29 31 30
53
+ f 29 32 31
54
+ g pipe0_pipe_cap_pos
55
+ v 6.5 0 -0.7
56
+ v 6.5 -0.00981046938 -0.849678838
57
+ v 6.5 -2.7554553e-17 -0.85
58
+ v 6.5 0.00981046938 -0.849678838
59
+ f 33 34 35
60
+ f 33 35 36
@@ -0,0 +1,38 @@
1
+ {
2
+ "surface_area_by_group": {
3
+ "trench_bottom": 3.5999999999999996,
4
+ "trench_cap_for_volume": 7.199999999999999,
5
+ "trench_walls": 21.056470248934023,
6
+ "ground_surface": 86.4,
7
+ "pipe0_pipe_side": 6.596167093530132,
8
+ "pipe0_pipe_cap_neg": 0.07063537949702267,
9
+ "pipe0_pipe_cap_pos": 0.07063537949702267
10
+ },
11
+ "closed_surface_sets": {
12
+ "trench_closed_groups": [
13
+ "trench_walls",
14
+ "trench_bottom",
15
+ "trench_cap_for_volume"
16
+ ]
17
+ },
18
+ "volumes": {
19
+ "trench_from_surface": -4.5,
20
+ "trench_flux_integral_div1": -4.5
21
+ },
22
+ "footprint_area_top": 7.199999999999999,
23
+ "footprint_area_bottom": 3.5999999999999996,
24
+ "width_top": 1.2,
25
+ "width_bottom": 0.5999999999999999,
26
+ "noise": {
27
+ "enable": false,
28
+ "amplitude": 0.02,
29
+ "corr_length": 0.5,
30
+ "octaves": 2,
31
+ "gain": 0.5,
32
+ "seed": 42,
33
+ "apply_to": [
34
+ "trench_walls",
35
+ "trench_bottom"
36
+ ]
37
+ }
38
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "path_xy": [
3
+ [
4
+ 0,
5
+ 0
6
+ ],
7
+ [
8
+ 6,
9
+ 0
10
+ ]
11
+ ],
12
+ "width": 1.2,
13
+ "depth": 1.5,
14
+ "wall_slope": 0.2,
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
+ {
26
+ "radius": 0.15,
27
+ "length": 7.0,
28
+ "angle_deg": 0,
29
+ "s_center": 0.5,
30
+ "z": -0.7,
31
+ "offset_u": 0.0
32
+ }
33
+ ],
34
+ "boxes": [],
35
+ "spheres": [],
36
+ "noise": {
37
+ "enable": false
38
+ }
39
+ }