0027991: Modeling Algorithms - BRepGProp_Face crashes on face without geometric surface
[occt.git] / tests / bugs / vis / bug25136
CommitLineData
71215351 1puts "============"
2puts "OCC25136"
3puts "Display customized colorscale."
4puts "============"
5puts ""
6
7vinit View1
8vclear
9vaxo
10
11# create default color scale
7a324550 12vcolorscale cs -demo
71215351 13vdump ${imagedir}/${casename}_1.png
14
15# reduce color scale range and number of intervals
7a324550 16vcolorscale cs -range 0 20 5
71215351 17vdump ${imagedir}/${casename}_2.png
18
19# set user-defined colors and labels for color scale
7a324550 20vcolorscale cs -colors white 0 0 1 green 1 0 0 1 1 1 -labels start 1 2 3 4 end
71215351 21vdump ${imagedir}/${casename}_3.png
22
23# change colors of first and last intervals
180f89a2 24vcolorscale cs -color 1 0.42 0.35 0.8
25vcolorscale cs -color 5 pink
71215351 26
27# change last label
180f89a2 28vcolorscale cs -label 6 "last"
71215351 29
30# set a title for color scale
7a324550 31vcolorscale cs -title "My color scale"
71215351 32vdump ${imagedir}/${casename}_4.png