]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Moving of unexistent 'Shading' property to 'Interpolation' one.
authorakl <akl@opencascade.com>
Thu, 27 Mar 2014 06:26:27 +0000 (10:26 +0400)
committerakl <akl@opencascade.com>
Thu, 27 Mar 2014 06:26:27 +0000 (10:26 +0400)
test/VisuPrs/3D_viewer/A6.py
test/VisuPrs/3D_viewer/A9.py

index 2c8f3024f542f39df2487c579c360e63def7a36c..95e80097c24715ee8a380477e62acf7b59c62cf3 100644 (file)
@@ -58,7 +58,7 @@ else:
 represents = [RepresentationType.POINTS, RepresentationType.WIREFRAME,
 RepresentationType.SURFACE, RepresentationType.VOLUME]
 shrinks = [0, 1]
-shadings = [0, 1]
+shadings = ["Flat", "Gouraud"]
 opacities = [1.0, 0.5, 0.0]
 linewidths = [1.0, 3.0, 10.0]
 compare_prec = 0.00001
index 2ee129217dcb453e6eb2a9515545dac821a7b399..d52482d15d5a7df8dda61b08953432f33ad5c97a 100644 (file)
@@ -144,7 +144,7 @@ pic_name = picturedir + "params_SURFACE_2." + pictureext
 process_prs_for_test(shape_to_show, my_view, pic_name)
 
 err = check_all_params(shape_to_show,
-RepresentationType.get_name(RepresentationType.SURFACE), 1, 0.8, 5.0)
+RepresentationType.get_name(RepresentationType.SURFACE), "Gouraud", 0.8, 5.0)
 
 ##call_and_check(scalar_map, "Shrinked", 0, "Shrinked")
 ##call_and_check(scalar_map, "Shrinked", 1, "Shrinked")
@@ -158,7 +158,7 @@ pic_name = picturedir + "params_SURFACE_3." + pictureext
 process_prs_for_test(shape_to_show, my_view, pic_name)
 
 err = err + check_all_params(shape_to_show,
-RepresentationType.get_name(RepresentationType.SURFACE), 1, 0.8, 5.0)
+RepresentationType.get_name(RepresentationType.SURFACE), "Gouraud", 0.8, 5.0)
 
 call_and_check(shape_to_show, "Interpolation", "Flat")
 call_and_check(shape_to_show, "Interpolation", "Gouraud")
@@ -172,7 +172,7 @@ pic_name = picturedir + "params_SURFACE_4." + pictureext
 process_prs_for_test(shape_to_show, my_view, pic_name)
 
 err = err + check_all_params(shape_to_show,
-RepresentationType.get_name(RepresentationType.SURFACE), 1, 0.8, 5.0)
+RepresentationType.get_name(RepresentationType.SURFACE), "Gouraud", 0.8, 5.0)
 
 call_and_check(shape_to_show, "Opacity", 1.0,  1, compare_prec)
 call_and_check(shape_to_show, "Opacity", 0.8,  1, compare_prec)
@@ -186,7 +186,7 @@ pic_name = picturedir + "params_SURFACE_5." + pictureext
 process_prs_for_test(shape_to_show, my_view, pic_name)
 
 err = err + check_all_params(shape_to_show,
-RepresentationType.get_name(RepresentationType.SURFACE), 1, 0.8, 5.0)
+RepresentationType.get_name(RepresentationType.SURFACE), "Gouraud", 0.8, 5.0)
 
 # Reset
 ##call_and_check(shape_to_show, "Shrinked", 0, "Shrinked")
@@ -243,7 +243,7 @@ pic_name = picturedir + "params_WIREFRAME_2." + pictureext
 process_prs_for_test(shape_to_show, my_view, pic_name)
 
 err = err + check_all_params(shape_to_show,
-RepresentationType.get_name(RepresentationType.WIREFRAME), 1, 0.8, 5.0)
+RepresentationType.get_name(RepresentationType.WIREFRAME), "Gouraud", 0.8, 5.0)
 
 ##call_and_check(shape_to_show, "Shrinked", 0)
 ##call_and_check(shape_to_show, "Shrinked", 1)
@@ -256,7 +256,7 @@ pic_name = picturedir + "params_WIREFRAME_3." + pictureext
 process_prs_for_test(shrinked_scalar_map, my_view, pic_name)
 
 err = err + check_all_params(shape_to_show,
-RepresentationType.get_name(RepresentationType.WIREFRAME), 1, 0.8, 5.0)
+RepresentationType.get_name(RepresentationType.WIREFRAME), "Gouraud", 0.8, 5.0)
 
 call_and_check(shape_to_show, "Interpolation", "Flat")
 call_and_check(shape_to_show, "Interpolation", "Gouraud")
@@ -269,7 +269,7 @@ pic_name = picturedir + "params_WIREFRAME_4." + pictureext
 process_prs_for_test(shape_to_show, my_view, pic_name)
 
 err = err + check_all_params(shape_to_show,
-RepresentationType.get_name(RepresentationType.WIREFRAME), 1, 0.8, 5.0)
+RepresentationType.get_name(RepresentationType.WIREFRAME), "Gouraud", 0.8, 5.0)
 
 call_and_check(shape_to_show, "Opacity", 1.0, 1, compare_prec)
 call_and_check(shape_to_show, "Opacity", 0.8, 1, compare_prec)
@@ -282,7 +282,7 @@ pic_name = picturedir + "params_WIREFRAME_5." + pictureext
 process_prs_for_test(shape_to_show, my_view, pic_name)
 
 err = err + check_all_params(shape_to_show,
-RepresentationType.get_name(RepresentationType.WIREFRAME), 1, 0.8, 5.0)
+RepresentationType.get_name(RepresentationType.WIREFRAME), "Gouraud", 0.8, 5.0)
 
 if err:
     raise RuntimeError("Presentation parameters are not stable")