mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-12 11:06:26 +08:00
- Moved tcl samples to resource folder. - Clean up cmake from samples related settings. - Removed CSharp samples from the repository. - Removed MFC samples from the repository. - Removed Qt samples from the repository. - Removed Inspector samples from the repository. - Removed glwin samples from the repository. - Removed webgl samples from the repository. - Removed xaml samples from the repository. - Removed Java samples from the repository.
32 lines
915 B
Plaintext
32 lines
915 B
Plaintext
puts "========"
|
|
puts "0024437: Visualization - silhouette edges based on OpenGL"
|
|
puts "Draw bottle sample"
|
|
puts "========"
|
|
puts ""
|
|
|
|
pload MODELING VISUALIZATION
|
|
|
|
# test for creation of bottle as in tutorial (script is in samples)
|
|
source $env(CSF_OCCTResourcePath)/samples/tcl/bottle.tcl
|
|
|
|
vbackground -color WHITE
|
|
vzbufftrihedron -type wireframe -colorLabels BLACK
|
|
vaspects bottle -setDrawSilhouette 1 -setEdgeColor BLACK -setFaceBoundaryDraw 1 -setMostContinuity c0 -setFaceBoundaryColor BLACK -setInteriorStyle HIDDENLINE
|
|
vrenderparams -rendScale 2
|
|
|
|
vcamera -ortho
|
|
vfit
|
|
vaspects bottle -setDrawSilhouette 0
|
|
vdump $::imagedir/${::casename}_ortho0.png
|
|
|
|
vaspects bottle -setDrawSilhouette 1
|
|
vdump $::imagedir/${::casename}_ortho1.png
|
|
|
|
vcamera -persp
|
|
vfit
|
|
vaspects bottle -setDrawSilhouette 0
|
|
vdump $::imagedir/${::casename}_persp0.png
|
|
|
|
vaspects bottle -setDrawSilhouette 1
|
|
vdump $::imagedir/${::casename}_persp1.png
|