blob: 9c14fe8d63b8c4d91b95e8f18586c88875d1b490 [file] [edit]
puts "============"
puts "CR25540"
puts "Check that the discretization of local selection,"
puts "wireframe and shaded presentation of shape is identical."
puts "============"
puts ""
pload MODELING VISUALIZATION
vinit View1 w=912 h=912
vclear
# Create object in shaded mode
vsetdispmode 1
pcylinder p 1 100
vdisplay p
vfit
# Setup field of view
vrotate 1 1.5 0
vfit
vtranslateview 24 18.5 0
vzoom 32
vtranslateview -0.1 -0.6 0
vzoom 2
vdump $imagedir/${casename}_shaded_pres.png
vmoveto 100 100
vdump $imagedir/${casename}_h_pres.png
# Activate the local selection by edges and highlight small circle edge.
# It's discretization should coincide with discretization of whole shape hiligting.
vselmode p -set EDGE 1
vmoveto 130 80
vdump $imagedir/${casename}_local_h_pres.png
# Explode object on faces
explode p F
# Create colored shape: set another color to one face
vaspects p -subshapes p_3 -setcolor RED
vselmode p -set 0 1
vmoveto 100 100
vdump $imagedir/${casename}_h_sub_pres.png
vselmode p -set EDGE 1
vmoveto 130 80
vdump $imagedir/${casename}_local_h_sub_pres.png