mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-09 18:50:54 +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:
parent
6ca1c7466b
commit
63fad07eb4
@ -83,12 +83,6 @@ the copyright allows you to use, modify, and redistribute Tcl/Tk for any purpose
|
|||||||
explicit license agreement and without paying any license fees or royalties.
|
explicit license agreement and without paying any license fees or royalties.
|
||||||
To use Tcl/Tk, please refer to the Licensing Terms (http://www.tcl.tk/software/tcltk/license.html).
|
To use Tcl/Tk, please refer to the Licensing Terms (http://www.tcl.tk/software/tcltk/license.html).
|
||||||
|
|
||||||
**Robert Boehne** has developed **GNU Autoconf**, **Automake** and **Libtool** scripts and makefiles
|
|
||||||
for the Open CASCADE project http://sourceforge.net/projects/autoopencas/,
|
|
||||||
which became an initial groundwork for the build scripts based on respective GNU tools
|
|
||||||
(autoconf, automake and libtool) in Open CASCADE Technology version 4.0.
|
|
||||||
These scripts are now maintained by the OPEN CASCADE company.
|
|
||||||
|
|
||||||
**GL2PS** is developed by Christophe Geuzaine and others. It is optionally used by OCCT to
|
**GL2PS** is developed by Christophe Geuzaine and others. It is optionally used by OCCT to
|
||||||
export content of OpenGL scene to vector graphics formats (PS, PDF, EMF, SVG).
|
export content of OpenGL scene to vector graphics formats (PS, PDF, EMF, SVG).
|
||||||
The library is licensed under GL2PS LICENSE http://www.geuz.org/gl2ps/COPYING.GL2PS Version 2, November 2003.
|
The library is licensed under GL2PS LICENSE http://www.geuz.org/gl2ps/COPYING.GL2PS Version 2, November 2003.
|
||||||
|
@ -23,7 +23,7 @@ WARNINGS = NO
|
|||||||
ENABLE_PREPROCESSING = YES
|
ENABLE_PREPROCESSING = YES
|
||||||
MACRO_EXPANSION = YES
|
MACRO_EXPANSION = YES
|
||||||
EXPAND_ONLY_PREDEF = YES
|
EXPAND_ONLY_PREDEF = YES
|
||||||
PREDEFINED = Standard_EXPORT __Standard_API __Draw_API Handle(a):=Handle<a> DEFINE_STANDARD_ALLOC DEFINE_NCOLLECTION_ALLOC
|
PREDEFINED = Standard_EXPORT Standard_OVERRIDE:=override __Standard_API __Draw_API Handle(a):=Handle<a> DEFINE_STANDARD_ALLOC DEFINE_NCOLLECTION_ALLOC
|
||||||
GENERATE_HTML = YES
|
GENERATE_HTML = YES
|
||||||
GENERATE_LATEX = NO
|
GENERATE_LATEX = NO
|
||||||
SEARCH_INCLUDES = YES
|
SEARCH_INCLUDES = YES
|
||||||
|
@ -44,7 +44,7 @@ if { [winfo exists .h ] } {
|
|||||||
set ddir .
|
set ddir .
|
||||||
if { [info exists env(CSF_OCCTDataPath)] } {
|
if { [info exists env(CSF_OCCTDataPath)] } {
|
||||||
set ddir [file join $env(CSF_OCCTDataPath) occ]
|
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]
|
set ddir [file join $env(CASROOT) data occ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,3 +112,4 @@ puts "Showing result..."
|
|||||||
vdisplay bottle
|
vdisplay bottle
|
||||||
vfit
|
vfit
|
||||||
vsetdispmode 1
|
vsetdispmode 1
|
||||||
|
vaspects -isoontriangulation 1
|
||||||
|
@ -61,4 +61,5 @@ vinit
|
|||||||
vdisplay res
|
vdisplay res
|
||||||
vsetdispmode 1
|
vsetdispmode 1
|
||||||
vshowfaceboundary res 1 255 255 255
|
vshowfaceboundary res 1 255 255 255
|
||||||
|
vaspects -isoontriangulation 1
|
||||||
vfit
|
vfit
|
||||||
|
@ -248,6 +248,7 @@ if [info exists i7_show_3dview] {
|
|||||||
vinit Driver1/Viewer1/View1
|
vinit Driver1/Viewer1/View1
|
||||||
vclear
|
vclear
|
||||||
vsetdispmode 1
|
vsetdispmode 1
|
||||||
|
vrenderparams -msaa 8
|
||||||
|
|
||||||
vlight clear
|
vlight clear
|
||||||
vlight add amb
|
vlight add amb
|
||||||
@ -265,7 +266,7 @@ if [info exists i7_show_3dview] {
|
|||||||
vsetcolor board_4 0 0.6 0.55
|
vsetcolor board_4 0 0.6 0.55
|
||||||
vsetcolor board_5 0 0.6 0.55
|
vsetcolor board_5 0 0.6 0.55
|
||||||
vsetcolor board_12 0 0.3 0.33
|
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
|
vdisplay rpads
|
||||||
vsetcolor rpads 0.7 0.6 0.4
|
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_4 0 0.6 0.55
|
||||||
XSetColor D board_5 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_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"
|
SetName D [XAddShape D case 0] "Case"
|
||||||
XSetColor D case 0.7 0.7 0.7
|
XSetColor D case 0.7 0.7 0.7
|
||||||
@ -322,6 +323,7 @@ vlight clear
|
|||||||
vlight add amb
|
vlight add amb
|
||||||
vlight add directional direction 1 -1 -2 head 1
|
vlight add directional direction 1 -1 -2 head 1
|
||||||
vsetdispmode 1
|
vsetdispmode 1
|
||||||
|
vrenderparams -msaa 8
|
||||||
vfit
|
vfit
|
||||||
|
|
||||||
# save to STEP if variable i7_save_xde is defined (specifies file name)
|
# save to STEP if variable i7_save_xde is defined (specifies file name)
|
||||||
|
@ -85,5 +85,6 @@ checkshape cutter
|
|||||||
incmesh cutter 0.01
|
incmesh cutter 0.01
|
||||||
vdisplay cutter
|
vdisplay cutter
|
||||||
vsetdispmode cutter 1
|
vsetdispmode cutter 1
|
||||||
|
vrenderparams -msaa 8
|
||||||
incmesh profile_1 0.01; vdisplay profile_1
|
incmesh profile_1 0.01; vdisplay profile_1
|
||||||
vfit
|
vfit
|
||||||
|
@ -96,5 +96,6 @@ vbottom
|
|||||||
vrotate -0.3 -0.3 0
|
vrotate -0.3 -0.3 0
|
||||||
vfit
|
vfit
|
||||||
vzoom 1.2
|
vzoom 1.2
|
||||||
|
vrenderparams -msaa 8
|
||||||
|
|
||||||
puts "Done."
|
puts "Done."
|
@ -140,6 +140,7 @@ puts "Displaying result..."
|
|||||||
incmesh drill 0.01
|
incmesh drill 0.01
|
||||||
vdisplay drill
|
vdisplay drill
|
||||||
vsetdispmode drill 1
|
vsetdispmode drill 1
|
||||||
|
vrenderparams -msaa 8
|
||||||
vfit
|
vfit
|
||||||
|
|
||||||
# show section and sweep path
|
# show section and sweep path
|
||||||
|
@ -72,6 +72,7 @@ vglinfo
|
|||||||
vsetgradientbg 180 200 255 180 180 180 2
|
vsetgradientbg 180 200 255 180 180 180 2
|
||||||
vlight change 0 pos -1 1 1
|
vlight change 0 pos -1 1 1
|
||||||
vsetdispmode 1
|
vsetdispmode 1
|
||||||
|
vrenderparams -msaa 8
|
||||||
|
|
||||||
# adjust scene bounding box
|
# adjust scene bounding box
|
||||||
box bnd 0 0 0 180 210 1
|
box bnd 0 0 0 180 210 1
|
||||||
|
@ -58,6 +58,7 @@ XShow D
|
|||||||
|
|
||||||
vfit
|
vfit
|
||||||
vsetdispmode 1
|
vsetdispmode 1
|
||||||
|
vrenderparams -msaa 8
|
||||||
vsetcolorbg 255 255 255
|
vsetcolorbg 255 255 255
|
||||||
|
|
||||||
#param write.iges.brep.mode 1
|
#param write.iges.brep.mode 1
|
||||||
|
@ -127,6 +127,7 @@ compound snowflake lines text drawing
|
|||||||
# display in 3d view
|
# display in 3d view
|
||||||
vinit Driver1/Viewer1/View1 w=1024 h=768
|
vinit Driver1/Viewer1/View1 w=1024 h=768
|
||||||
vdisplay snowflake lines text
|
vdisplay snowflake lines text
|
||||||
|
vrenderparams -msaa 8
|
||||||
vsetcolor snowflake 0 0 0
|
vsetcolor snowflake 0 0 0
|
||||||
vsetcolor lines 0 0 0
|
vsetcolor lines 0 0 0
|
||||||
vsetcolor text 0 0 0
|
vsetcolor text 0 0 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user