11use pyo3:: prelude:: * ;
22use pyo3_stub_gen:: define_stub_info_gatherer;
33
4- mod uniform_grid;
5- mod mesh;
64mod aabb;
5+ mod mesh;
76mod sph_interpolation;
7+ mod uniform_grid;
88
99mod marching_cubes;
10- mod post_processing;
11- mod reconstruction;
1210mod neighborhood_search;
1311mod pipeline;
12+ mod post_processing;
13+ mod reconstruction;
1414
1515/// High-Level Bindings of the splashsurf surface reconstruction implementation.
1616/// Support reconstructing Level-Set surfaces from particle clouds or from regular grids.
@@ -38,34 +38,82 @@ fn pysplashsurf(m: &Bound<'_, PyModule>) -> PyResult<()> {
3838 let _ = m. add_class :: < aabb:: Aabb3dF32 > ( ) ?;
3939 let _ = m. add_class :: < aabb:: Aabb3dF64 > ( ) ?;
4040
41- let _ = m. add_function ( wrap_pyfunction ! ( reconstruction:: reconstruct_surface_py_f32, m) ?) ;
42- let _ = m. add_function ( wrap_pyfunction ! ( reconstruction:: reconstruct_surface_py_f64, m) ?) ;
43-
44- let _ = m. add_function ( wrap_pyfunction ! ( post_processing:: convert_tris_to_quads_py_f32, m) ?) ;
45- let _ = m. add_function ( wrap_pyfunction ! ( post_processing:: convert_tris_to_quads_py_f64, m) ?) ;
46-
47- let _ = m. add_function ( wrap_pyfunction ! ( post_processing:: marching_cubes_cleanup_py_f32, m) ?) ;
48- let _ = m. add_function ( wrap_pyfunction ! ( post_processing:: marching_cubes_cleanup_py_f64, m) ?) ;
49-
50- let _ = m. add_function ( wrap_pyfunction ! ( marching_cubes:: check_mesh_consistency_py_f32, m) ?) ;
51- let _ = m. add_function ( wrap_pyfunction ! ( marching_cubes:: check_mesh_consistency_py_f64, m) ?) ;
41+ let _ = m. add_function ( wrap_pyfunction ! (
42+ reconstruction:: reconstruct_surface_py_f32,
43+ m
44+ ) ?) ;
45+ let _ = m. add_function ( wrap_pyfunction ! (
46+ reconstruction:: reconstruct_surface_py_f64,
47+ m
48+ ) ?) ;
49+
50+ let _ = m. add_function ( wrap_pyfunction ! (
51+ post_processing:: convert_tris_to_quads_py_f32,
52+ m
53+ ) ?) ;
54+ let _ = m. add_function ( wrap_pyfunction ! (
55+ post_processing:: convert_tris_to_quads_py_f64,
56+ m
57+ ) ?) ;
58+
59+ let _ = m. add_function ( wrap_pyfunction ! (
60+ post_processing:: marching_cubes_cleanup_py_f32,
61+ m
62+ ) ?) ;
63+ let _ = m. add_function ( wrap_pyfunction ! (
64+ post_processing:: marching_cubes_cleanup_py_f64,
65+ m
66+ ) ?) ;
67+
68+ let _ = m. add_function ( wrap_pyfunction ! (
69+ marching_cubes:: check_mesh_consistency_py_f32,
70+ m
71+ ) ?) ;
72+ let _ = m. add_function ( wrap_pyfunction ! (
73+ marching_cubes:: check_mesh_consistency_py_f64,
74+ m
75+ ) ?) ;
5276
5377 let _ = m. add_function ( wrap_pyfunction ! ( post_processing:: decimation_py_f32, m) ?) ;
5478 let _ = m. add_function ( wrap_pyfunction ! ( post_processing:: decimation_py_f64, m) ?) ;
5579
56- let _ = m. add_function ( wrap_pyfunction ! ( post_processing:: par_laplacian_smoothing_inplace_py_f32, m) ?) ;
57- let _ = m. add_function ( wrap_pyfunction ! ( post_processing:: par_laplacian_smoothing_inplace_py_f64, m) ?) ;
58-
59- let _ = m. add_function ( wrap_pyfunction ! ( post_processing:: par_laplacian_smoothing_normals_inplace_py_f32, m) ?) ;
60- let _ = m. add_function ( wrap_pyfunction ! ( post_processing:: par_laplacian_smoothing_normals_inplace_py_f64, m) ?) ;
61-
62- let _ = m. add_function ( wrap_pyfunction ! ( neighborhood_search:: neighborhood_search_spatial_hashing_parallel_py_f32, m) ?) ;
63- let _ = m. add_function ( wrap_pyfunction ! ( neighborhood_search:: neighborhood_search_spatial_hashing_parallel_py_f64, m) ?) ;
64-
65- let _ = m. add_function ( wrap_pyfunction ! ( pipeline:: reconstruction_pipeline_py_f32, m) ?) ;
66- let _ = m. add_function ( wrap_pyfunction ! ( pipeline:: reconstruction_pipeline_py_f64, m) ?) ;
80+ let _ = m. add_function ( wrap_pyfunction ! (
81+ post_processing:: par_laplacian_smoothing_inplace_py_f32,
82+ m
83+ ) ?) ;
84+ let _ = m. add_function ( wrap_pyfunction ! (
85+ post_processing:: par_laplacian_smoothing_inplace_py_f64,
86+ m
87+ ) ?) ;
88+
89+ let _ = m. add_function ( wrap_pyfunction ! (
90+ post_processing:: par_laplacian_smoothing_normals_inplace_py_f32,
91+ m
92+ ) ?) ;
93+ let _ = m. add_function ( wrap_pyfunction ! (
94+ post_processing:: par_laplacian_smoothing_normals_inplace_py_f64,
95+ m
96+ ) ?) ;
97+
98+ let _ = m. add_function ( wrap_pyfunction ! (
99+ neighborhood_search:: neighborhood_search_spatial_hashing_parallel_py_f32,
100+ m
101+ ) ?) ;
102+ let _ = m. add_function ( wrap_pyfunction ! (
103+ neighborhood_search:: neighborhood_search_spatial_hashing_parallel_py_f64,
104+ m
105+ ) ?) ;
106+
107+ let _ = m. add_function ( wrap_pyfunction ! (
108+ pipeline:: reconstruction_pipeline_py_f32,
109+ m
110+ ) ?) ;
111+ let _ = m. add_function ( wrap_pyfunction ! (
112+ pipeline:: reconstruction_pipeline_py_f64,
113+ m
114+ ) ?) ;
67115
68116 Ok ( ( ) )
69117}
70118
71- define_stub_info_gatherer ! ( stub_info) ;
119+ define_stub_info_gatherer ! ( stub_info) ;
0 commit comments