1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

0027338: Minor corrections in Tcl samples and documentation

In samples:
- Fixed syntax error in DataExchangeDemo.tcl
- MSAA is enabled in some tests to provide better presentation
- Option to build isolines on triangulation is used in some samples to avoid artifacts in selection highlight
- Colors are corrected in cpu.tcl

In documentation:
- Reference to automake tools is removed
- Standard_OVERRIDE is expanded to "override"
This commit is contained in:
abv
2016-04-02 16:38:09 +03:00
parent 6ca1c7466b
commit 63fad07eb4
12 changed files with 15 additions and 11 deletions

View File

@@ -44,7 +44,7 @@ if { [winfo exists .h ] } {
set ddir .
if { [info exists env(CSF_OCCTDataPath)] } {
set ddir [file join $env(CSF_OCCTDataPath) occ]
} else if { [info exists env(CASROOT)] } {
} elseif { [info exists env(CASROOT)] } {
set ddir [file join $env(CASROOT) data occ]
}

View File

@@ -112,3 +112,4 @@ puts "Showing result..."
vdisplay bottle
vfit
vsetdispmode 1
vaspects -isoontriangulation 1

View File

@@ -61,4 +61,5 @@ vinit
vdisplay res
vsetdispmode 1
vshowfaceboundary res 1 255 255 255
vaspects -isoontriangulation 1
vfit

View File

@@ -248,6 +248,7 @@ if [info exists i7_show_3dview] {
vinit Driver1/Viewer1/View1
vclear
vsetdispmode 1
vrenderparams -msaa 8
vlight clear
vlight add amb
@@ -265,7 +266,7 @@ if [info exists i7_show_3dview] {
vsetcolor board_4 0 0.6 0.55
vsetcolor board_5 0 0.6 0.55
vsetcolor board_12 0 0.3 0.33
vsetcolor board_15 0 0.3 0.33
vsetcolor board_14 0 0.3 0.33
vdisplay rpads
vsetcolor rpads 0.7 0.6 0.4
@@ -290,7 +291,7 @@ foreach f [explode board f] { XSetColor D $f 0.7 0.5 0.3 }
XSetColor D board_4 0 0.6 0.55
XSetColor D board_5 0 0.6 0.55
XSetColor D board_12 0 0.3 0.33
XSetColor D board_15 0 0.3 0.33
XSetColor D board_14 0 0.3 0.33
SetName D [XAddShape D case 0] "Case"
XSetColor D case 0.7 0.7 0.7
@@ -322,10 +323,11 @@ vlight clear
vlight add amb
vlight add directional direction 1 -1 -2 head 1
vsetdispmode 1
vrenderparams -msaa 8
vfit
# save to STEP if variable i7_save_xde is defined (specifies file name)
if [info exists i7_save_xde] {
param write.surfacecurve.mode 0
WriteStep D $i7_save_xde
}
}

View File

@@ -85,5 +85,6 @@ checkshape cutter
incmesh cutter 0.01
vdisplay cutter
vsetdispmode cutter 1
vrenderparams -msaa 8
incmesh profile_1 0.01; vdisplay profile_1
vfit

View File

@@ -96,5 +96,6 @@ vbottom
vrotate -0.3 -0.3 0
vfit
vzoom 1.2
vrenderparams -msaa 8
puts "Done."

View File

@@ -140,6 +140,7 @@ puts "Displaying result..."
incmesh drill 0.01
vdisplay drill
vsetdispmode drill 1
vrenderparams -msaa 8
vfit
# show section and sweep path

View File

@@ -72,6 +72,7 @@ vglinfo
vsetgradientbg 180 200 255 180 180 180 2
vlight change 0 pos -1 1 1
vsetdispmode 1
vrenderparams -msaa 8
# adjust scene bounding box
box bnd 0 0 0 180 210 1

View File

@@ -58,6 +58,7 @@ XShow D
vfit
vsetdispmode 1
vrenderparams -msaa 8
vsetcolorbg 255 255 255
#param write.iges.brep.mode 1

View File

@@ -127,6 +127,7 @@ compound snowflake lines text drawing
# display in 3d view
vinit Driver1/Viewer1/View1 w=1024 h=768
vdisplay snowflake lines text
vrenderparams -msaa 8
vsetcolor snowflake 0 0 0
vsetcolor lines 0 0 0
vsetcolor text 0 0 0