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
# Get view
my_view = GetRenderView()
-print "\nCreating plot3d.......",
+print "\nCreating plot3d......."
plot3d = Plot3DOnField(proxy, EntityType.NODE, field_name, 1)
if plot3d is None:
raise RuntimeError("Error!!! Presentation wasn't created...")
for sha in shadings:
setShaded(my_view, sha)
- call_and_check(plot3d, "Shading", sha, 1)
+ call_and_check(plot3d, "Interpolation", sha, 1)
Render(my_view)
for opa in opacities:
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
call_and_check(vectors, "Representation", repr, 1)
for sha in shadings:
- call_and_check(vectors, "Shading", sha, 1)
+ call_and_check(vectors, "Interpolation", sha, 1)
setShaded(my_view, sha)
Render(my_view)
time.sleep(1)
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
for sha in shadings:
setShaded(my_view, sha)
- call_and_check(stream_lines, "Shading", sha, 1)
+ call_and_check(stream_lines, "Interpolation", sha, 1)
Render(my_view)
time.sleep(1)
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
for sha in shadings:
setShaded(my_view, sha)
- call_and_check(iso_surf, "Shading", sha, 1)
+ call_and_check(iso_surf, "Interpolation", sha, 1)
Render(my_view)
for opa in opacities:
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
for sha in shadings:
setShaded(my_view, sha)
- call_and_check(shape_to_show, "Shading", sha, 1)
+ call_and_check(shape_to_show, "Interpolation", sha, 1)
Render(my_view)
for opa in opacities:
for sha in shadings:
setShaded(my_view, sha)
- call_and_check(shape_to_show, "Shading", sha, 1)
+ call_and_check(shape_to_show, "Interpolation", sha, 1)
Render(my_view)
for opa in opacities:
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
for sha in shadings:
setShaded(my_view, sha)
- call_and_check(cut_planes, "Shading", sha, 1)
+ call_and_check(cut_planes, "Interpolation", sha, 1)
Render(my_view)
for opa in opacities:
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
for sha in shadings:
setShaded(my_view, sha)
- call_and_check(cut_lines, "Shading", sha, 1)
+ call_and_check(cut_lines, "Interpolation", sha, 1)
Render(my_view)
for opa in opacities:
def check_all_params(prs, pres_type, shad, opac, lwid):
err = check_value(prs, "Representation", pres_type, 0, -1.0)
- err = err + check_value(prs, "Shading", shad, 0, -1.0)
+ err = err + check_value(prs, "Interpolation", shad, 0, -1.0)
err = err + check_value(prs, "Opacity", opac, 0, compare_prec)
err = err + check_value(prs, "LineWidth", lwid, 0, compare_prec)
return err
shape_to_show = shrinked_scalar_map
setShaded(my_view, 1)
-call_and_check(shape_to_show, "Shading", 1)
+call_and_check(shape_to_show, "Interpolation", "Gouraud")
Render(my_view)
call_and_check(shape_to_show, "Opacity", 0.8, 1, compare_prec)
call_and_check(shape_to_show, "LineWidth", 5.0, 1, compare_prec)
err = err + check_all_params(shape_to_show,
RepresentationType.get_name(RepresentationType.SURFACE), 1, 0.8, 5.0)
-call_and_check(shape_to_show, "Shading", 0)
-call_and_check(shape_to_show, "Shading", 1)
+call_and_check(shape_to_show, "Interpolation", "Flat")
+call_and_check(shape_to_show, "Interpolation", "Gouraud")
time.sleep(1)
# Reset
##call_and_check(shape_to_show, "Shrinked", 0, "Shrinked")
setShaded(my_view, 0)
-call_and_check(shape_to_show, "Shading", 0,)
+call_and_check(shape_to_show, "Interpolation", "Flat",)
Render(my_view)
call_and_check(shape_to_show, "Opacity", 1.0, 1, compare_prec)
call_and_check(shape_to_show, "LineWidth", 1.0, 1, compare_prec)
shape_to_show = shrinked_scalar_map
setShaded(my_view, 1)
-call_and_check(shape_to_show, "Shading", 1)
+call_and_check(shape_to_show, "Interpolation", "Gouraud")
Render(my_view)
call_and_check(shape_to_show, "Opacity", 0.8, 1, compare_prec)
call_and_check(shape_to_show, "LineWidth", 5.0, 1, compare_prec)
err = err + check_all_params(shape_to_show,
RepresentationType.get_name(RepresentationType.WIREFRAME), 1, 0.8, 5.0)
-call_and_check(shape_to_show, "Shading", 0)
-call_and_check(shape_to_show, "Shading", 1)
+call_and_check(shape_to_show, "Interpolation", "Flat")
+call_and_check(shape_to_show, "Interpolation", "Gouraud")
time.sleep(1)
# save picture in file
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
for sha in shadings:
setShaded(my_view, sha)
- call_and_check(shape_to_show, "Shading", sha, 1)
+ call_and_check(shape_to_show, "Interpolation", sha, 1)
Render(my_view)
for opa in opacities: