mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
A new command vbackground is created. Old background commands are made aliases for the newly created command (including vsetdefaultbg). Tests are modified using newly added command vbackground.
26 lines
809 B
Plaintext
26 lines
809 B
Plaintext
puts "========"
|
|
puts "0024437: Visualization - silhouette edges based on OpenGL"
|
|
puts "Draw box and sphere primitives"
|
|
puts "========"
|
|
puts ""
|
|
|
|
pload MODELING VISUALIZATION
|
|
|
|
vclear
|
|
vinit View1
|
|
vbackground -color GAINSBORO
|
|
#vbackground -gradient 0.705882 0.784314 1 0.705882 0.705882 0.705882 -gradientMode VERTICAL
|
|
vaxo
|
|
|
|
psphere s 1.0
|
|
box b 2 -2 -2 1 2 3
|
|
|
|
vdisplay -dispMode 1 b s
|
|
vfit
|
|
|
|
vaspects b s -setDrawSilhouette 1 -setEdgeColor RED -setEdgeWidth 4 -setFaceBoundaryDraw 1 -setFaceBoundaryColor BLUE1 -setFaceBoundaryWidth 1 -setInteriorStyle HIDDENLINE
|
|
vdump $::imagedir/${::casename}_0.png
|
|
|
|
vaspects b s -setDrawSilhouette 1 -setEdgeColor RED -setEdgeWidth 4 -setFaceBoundaryDraw 1 -setFaceBoundaryColor RED -setFaceBoundaryWidth 4 -setInteriorStyle HIDDENLINE
|
|
vdump $::imagedir/${::casename}_1.png
|