File: flat_fuse1

package info (click to toggle)
opencascade 7.3.0%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 278,376 kB
  • sloc: cpp: 1,136,010; ansic: 81,569; tcl: 14,864; cs: 5,173; java: 1,522; xml: 468; sh: 375; perl: 37; makefile: 25
file content (22 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
puts "========"
puts "0028069: Visualization, TKOpenGl - handle flat shading model within GLSL programs"
puts "========"

vclear
vclose ALL
vinit View1
vviewparams -scale 551.55 -proj 0.85 -0.16 0.51 -up -0.41 0.41 0.82 -at 0.55 0.55 0.55

restore [locate_data_file occ/fuse.brep] f
tclean f
vdefaults -absDefl 0.5
vdisplay -dispMode 1 f

# setup lights
vlight clear
vlight add ambient                color WHITE
vlight add directional dir  1 0 0 color GREEN headlight 1
vlight add directional dir -1 0 0 color RED1  headlight 1

vrenderparams -shadingModel flat
vdump $::imagedir/${::casename}.png