6ef0d6f1 |
1 | puts "========" |
2 | puts "0024437: Visualization - silhouette edges based on OpenGL" |
3 | puts "Draw bottle sample" |
4 | puts "========" |
5 | puts "" |
6 | |
7 | pload MODELING VISUALIZATION |
8 | |
9 | # test for creation of bottle as in tutorial (script is in samples) |
10 | source $env(CSF_OCCTSamplesPath)/tcl/bottle.tcl |
11 | |
293211ae |
12 | vbackground -color WHITE |
6ef0d6f1 |
13 | vzbufftrihedron -type wireframe -colorLabels BLACK |
14 | vaspects bottle -setDrawSilhouette 1 -setEdgeColor BLACK -setFaceBoundaryDraw 1 -setMostContinuity c0 -setFaceBoundaryColor BLACK -setInteriorStyle HIDDENLINE |
15 | vrenderparams -rendScale 2 |
16 | |
17 | vcamera -ortho |
18 | vfit |
19 | vaspects bottle -setDrawSilhouette 0 |
20 | vdump $::imagedir/${::casename}_ortho0.png |
21 | |
22 | vaspects bottle -setDrawSilhouette 1 |
23 | vdump $::imagedir/${::casename}_ortho1.png |
24 | |
25 | vcamera -persp |
26 | vfit |
27 | vaspects bottle -setDrawSilhouette 0 |
28 | vdump $::imagedir/${::casename}_persp0.png |
29 | |
30 | vaspects bottle -setDrawSilhouette 1 |
31 | vdump $::imagedir/${::casename}_persp1.png |