@@ -104,8 +104,9 @@ fn test_for_boundary<R: Real>(params: &Parameters<R>) -> bool {
104104}
105105
106106macro_rules! generate_test {
107- ( $floating_point_type: ty, $test_name: ident, $input_file: literal => $output_file: literal, $parameters: expr, $min_triangles: literal, $max_triangles: literal) => {
107+ ( $floating_point_type: ty, $test_name: ident, $input_file: literal => $output_file: literal, $parameters: expr, $min_triangles: literal, $max_triangles: literal $ ( , $attr : meta ) ? ) => {
108108 #[ test]
109+ $( #[ $attr] ) ?
109110 fn $test_name( ) {
110111 let input_file = Path :: new( "../data/" ) . join( $input_file) ;
111112 let output_file = Path :: new( "../out/" ) . join( $output_file) ;
@@ -153,16 +154,17 @@ macro_rules! generate_test {
153154 } ;
154155}
155156
156- generate_test ! ( f32 , surface_reconstruction_bunny_global, "bunny_frame_14_7705_particles.vtk" => "reconstruct_surface_bunny_par_global.vtk" , default_params( ) , 60000 , 80000 ) ;
157+ generate_test ! ( f32 , surface_reconstruction_bunny_global, "bunny_frame_14_7705_particles.vtk" => "reconstruct_surface_bunny_par_global.vtk" , default_params( ) , 60000 , 80000 , cfg_attr ( debug_assertions , ignore ) ) ;
157158generate_test ! ( f32 , surface_reconstruction_bunny_no_stitching, "bunny_frame_14_7705_particles.vtk" => "reconstruct_surface_bunny_par_no_stitching.vtk" , default_params_with( Strategy :: Octree ) , 60000 , 80000 ) ;
158- generate_test ! ( f32 , surface_reconstruction_bunny_stitching, "bunny_frame_14_7705_particles.vtk" => "reconstruct_surface_bunny_par_stitching.vtk" , default_params_with( Strategy :: OctreeStitching ) , 60000 , 80000 ) ;
159+ generate_test ! ( f32 , surface_reconstruction_bunny_stitching, "bunny_frame_14_7705_particles.vtk" => "reconstruct_surface_bunny_par_stitching.vtk" , default_params_with( Strategy :: OctreeStitching ) , 60000 , 80000 , cfg_attr ( debug_assertions , ignore ) ) ;
159160
160- generate_test ! ( f32 , surface_reconstruction_hexecontahedron_stitching, "pentagonal_hexecontahedron_32286_particles.vtk" => "reconstruct_surface_pentagonal_hexecontahedron_par_stitching.vtk" , default_params_with( Strategy :: OctreeStitching ) , 550000 , 650000 ) ;
161- generate_test ! ( f32 , surface_reconstruction_hilbert_stitching, "hilbert_46843_particles.vtk" => "reconstruct_surface_hilbert_par_stitching.vtk" , default_params_with( Strategy :: OctreeStitching ) , 360000 , 400000 ) ;
161+ generate_test ! ( f32 , surface_reconstruction_hexecontahedron_stitching, "pentagonal_hexecontahedron_32286_particles.vtk" => "reconstruct_surface_pentagonal_hexecontahedron_par_stitching.vtk" , default_params_with( Strategy :: OctreeStitching ) , 550000 , 650000 , cfg_attr( debug_assertions, ignore) ) ;
162+
163+ generate_test ! ( f32 , surface_reconstruction_hilbert_stitching, "hilbert_46843_particles.vtk" => "reconstruct_surface_hilbert_par_stitching.vtk" , default_params_with( Strategy :: OctreeStitching ) , 360000 , 400000 , cfg_attr( debug_assertions, ignore) ) ;
162164generate_test ! ( f32 , surface_reconstruction_hilbert2_stitching, "hilbert2_7954_particles.vtk" => "reconstruct_surface_hilbert2_par_stitching.vtk" , params( 0.025 , 4.0 , 1.1 , 0.6 , Strategy :: OctreeStitching ) , 70000 , 90000 ) ;
163- generate_test ! ( f32 , surface_reconstruction_octocat_stitching, "octocat_32614_particles.vtk" => "reconstruct_surface_octocat_par_stitching.vtk" , params( 0.025 , 4.0 , 0.75 , 0.6 , Strategy :: OctreeStitching ) , 140000 , 180000 ) ;
165+ generate_test ! ( f32 , surface_reconstruction_octocat_stitching, "octocat_32614_particles.vtk" => "reconstruct_surface_octocat_par_stitching.vtk" , params( 0.025 , 4.0 , 0.75 , 0.6 , Strategy :: OctreeStitching ) , 140000 , 180000 , cfg_attr ( debug_assertions , ignore ) ) ;
164166
165- generate_test ! ( f32 , surface_reconstruction_knot_global, "sailors_knot_19539_particles.vtk" => "reconstruct_surface_knot_par_global.vtk" , params( 0.025 , 4.0 , 1.1 , 0.6 , Strategy :: Global ) , 40000 , 70000 ) ;
167+ generate_test ! ( f32 , surface_reconstruction_knot_global, "sailors_knot_19539_particles.vtk" => "reconstruct_surface_knot_par_global.vtk" , params( 0.025 , 4.0 , 1.1 , 0.6 , Strategy :: Global ) , 40000 , 70000 , cfg_attr ( debug_assertions , ignore ) ) ;
166168generate_test ! ( f32 , surface_reconstruction_knot_stitching, "sailors_knot_19539_particles.vtk" => "reconstruct_surface_knot_par_stitching.vtk" , params( 0.025 , 4.0 , 1.1 , 0.6 , Strategy :: OctreeStitching ) , 40000 , 70000 ) ;
167169
168170generate_test ! ( f32 , surface_reconstruction_free_particles_01, "free_particles_1000_particles.vtk" => "reconstruct_surface_free_particles_01_global.vtk" , params( 0.5 , 4.0 , 1.5 , 0.45 , Strategy :: Global ) , 21000 , 25000 ) ;
0 commit comments