1 # Copyright (c) 1999-2014 OPEN CASCADE SAS
3 # This file is part of Open CASCADE Technology software library.
5 # This library is free software; you can redistribute it and / or modify it
6 # under the terms of the GNU Lesser General Public version 2.1 as published
7 # by the Free Software Foundation, with special exception defined in the file
8 # OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 # distribution for complete text of the license and disclaimer of any warranty.
11 # Alternatively, this file may be used under the terms of Open CASCADE
12 # commercial license or contractual agreement.
14 # Command to log a message to both command-line and dialog window
16 if { ![winfo exists .h ] } {
17 toplevel .h -bg azure3
18 wm title .h "INFO TEST HARNESS"
19 wm geometry .h +320+20
21 if { [winfo exists .h.m ] } {
22 set astring [.h.m cget -text]
23 set newstring "${astring} \n $a"
24 .h.m configure -text $newstring
27 message .h.m -justify left -bg azure2 -width 13c -relief ridge -bd 4 -text $a
37 if { [winfo exists .h ] } {
42 if { [info exists env(CASROOT)] } {
43 set ddir [file join $env(CASROOT) data occ]
47 if { [info exist env(TEMP)] } {
51 sage " First, we retrieve a BREP File "
52 sage " restore $ddir/wing.brep wing"
55 restore $ddir/wing.brep wing
59 sage "Generate the IGES File of this BREP"
60 sage " brepiges wing $tdir/wing.igs"
62 brepiges wing $tdir/wing.igs
65 sage "we delete all DRAW data"
71 sage "Restore this IGES File we have created "
72 sage " igesbrep $tdir/wing.igs new *"
74 igesbrep $tdir/wing.igs new *
78 puts "End IGES Elementary Test "
80 file delete $tdir/wing.igs