@@ -129,7 +129,6 @@ TEST(CurvedBlockingTestSuite, global_cell_accessors)
129129 ASSERT_EQ (11 , bl.get_all_faces ().size ());
130130 ASSERT_EQ (2 , bl.get_all_blocks ().size ());
131131}
132-
133132/* ----------------------------------------------------------------------------*/
134133TEST (CurvedBlockingTestSuite, remove_block)
135134{
@@ -188,7 +187,6 @@ TEST(CurvedBlockingTestSuite, single_block)
188187 ASSERT_NEAR (block_center.distance (face_center), 0.5 , 1e-8 );
189188 }
190189}
191-
192190/* ----------------------------------------------------------------------------*/
193191TEST (CurvedBlockingTestSuite, single_block_parallel_edges)
194192{
@@ -276,6 +274,44 @@ TEST(CurvedBlockingTestSuite, split_one_block_twice)
276274 ASSERT_EQ (20 ,bl.get_nb_cells <2 >());
277275 ASSERT_EQ (4 ,bl.get_nb_cells <3 >());
278276}
277+
278+ /* ----------------------------------------------------------------------------*/
279+ TEST (CurvedBlockingTestSuite, cut_sheet_param_propag)
280+ {
281+
282+ gmds::cad::FACManager geom_model;
283+ setUp (geom_model);
284+ gmds::blocking::CurvedBlocking bl (&geom_model, true );
285+ gmds::blocking::CurvedBlockingClassifier cl (&bl);
286+ cl.classify ();
287+
288+ std::vector<gmds::blocking::CurvedBlocking::Face> all_faces = bl.get_all_faces ();
289+ std::vector<gmds::blocking::CurvedBlocking::Face> surf;
290+
291+ surf.clear ();
292+ // We pick a full boundary surface on coord X=5.0 and Y=5.0
293+ for (auto f:all_faces){
294+ gmds::math::Point ci = bl.get_center_of_face (f);
295+ if (fabs (ci.X ()-5 )<0.1 ){
296+ surf.push_back (f);
297+ }
298+ else if (fabs (ci.Y ()-5 )<0.1 ){
299+ surf.push_back (f);
300+ }
301+ else if (fabs (ci.Z ()-5 )<0.1 ){
302+ surf.push_back (f);
303+ }
304+ }
305+ ASSERT_TRUE (bl.pillow (surf));
306+
307+ bl.smooth (10 );
308+
309+ // now we get the edge having end points of ids 1 and 2
310+ auto e = bl.get_edge (0 ,3 );
311+ bl.cut_sheet (e,0.25 );
312+
313+ ASSERT_EQ (7 ,bl.get_nb_cells <3 >());
314+ }
279315/* ----------------------------------------------------------------------------*/
280316TEST (CurvedBlockingTestSuite, init_from_geom_bounding_box)
281317{
@@ -325,8 +361,6 @@ TEST(CurvedBlockingTestSuite, single_block_to_mesh)
325361 ASSERT_EQ (m.getNbFaces (), 6 );
326362 ASSERT_EQ (m.getNbRegions (), 1 );
327363}
328-
329-
330364/* ----------------------------------------------------------------------------*/
331365TEST (CurvedBlockingTestSuite, projection_point_to_edges)
332366{
@@ -382,7 +416,6 @@ TEST(CurvedBlockingTestSuite, test_topological_queries)
382416 ASSERT_EQ (1 , bs.size ());
383417 }
384418}
385-
386419/* ----------------------------------------------------------------------------*/
387420TEST (CurvedBlockingTestSuite, test_init_from_ig_mesh)
388421{
@@ -422,7 +455,6 @@ TEST(CurvedBlockingTestSuite, test_init_from_ig_mesh)
422455 ASSERT_EQ (16 ,bl.get_all_faces ().size ());
423456 ASSERT_EQ (3 ,bl.get_all_blocks ().size ());
424457}
425-
426458/* ----------------------------------------------------------------------------*/
427459TEST (CurvedBlockingTestSuite, test_chord_query)
428460{
@@ -1129,6 +1161,7 @@ TEST(CurvedBlockingTestSuite, test_pillow_12)
11291161 ASSERT_EQ (nb_faces_on_surface, 34 );
11301162 ASSERT_EQ (nb_faces_in_volume, 25 );
11311163}
1164+ /* ----------------------------------------------------------------------------*/
11321165TEST (CurvedBlockingTestSuite, save_vtk_blocking){
11331166 gmds::cad::FACManager geom_model;
11341167 setUp (geom_model);
@@ -1137,7 +1170,7 @@ TEST(CurvedBlockingTestSuite, save_vtk_blocking){
11371170
11381171 bl.save_vtk_blocking (" testSaveWork.vtk" );
11391172}
1140-
1173+ /* ---------------------------------------------------------------------------- */
11411174TEST (CurvedBlockingTestSuite, get_Id_block){
11421175 gmds::cad::FACManager geom_model;
11431176 setUp (geom_model);
@@ -1157,7 +1190,7 @@ TEST(CurvedBlockingTestSuite, get_Id_block){
11571190 std::cout<<" LE BLOCK TEST " <<bl.get_block_id (block)<<std::endl;
11581191
11591192}
1160-
1193+ /* ---------------------------------------------------------------------------- */
11611194TEST (CurvedBlockingTestSuite, check_capt_Element){
11621195 gmds::cad::FACManager geom_model;
11631196 setUp (geom_model);
@@ -1180,3 +1213,4 @@ TEST(CurvedBlockingTestSuite, check_capt_Element){
11801213 std::cout<<" Check capt possible for the curve " << c->id ()<<" : " <<bl.check_capt_element (c->id (),c->dim ())<<std::endl;
11811214 }
11821215}
1216+ /* ----------------------------------------------------------------------------*/
0 commit comments