occt-gltf-addon-linux-x64 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/LICENSE_LGPL_21.txt +502 -0
  2. package/OCCT_LGPL_EXCEPTION.txt +10 -0
  3. package/README.md +2 -2
  4. package/index.js +63 -1
  5. package/lib/libTKBO.so.8.0.0 +0 -0
  6. package/lib/libTKBRep.so.8.0.0 +0 -0
  7. package/lib/libTKBin.so.8.0.0 +0 -0
  8. package/lib/libTKBinL.so.8.0.0 +0 -0
  9. package/lib/libTKBinTObj.so.8.0.0 +0 -0
  10. package/lib/libTKBinXCAF.so.8.0.0 +0 -0
  11. package/lib/libTKBool.so.8.0.0 +0 -0
  12. package/lib/libTKCAF.so.8.0.0 +0 -0
  13. package/lib/libTKCDF.so.8.0.0 +0 -0
  14. package/lib/libTKDE.so.8.0.0 +0 -0
  15. package/lib/libTKDECascade.so.8.0.0 +0 -0
  16. package/lib/libTKDEIGES.so.8.0.0 +0 -0
  17. package/lib/libTKDEOBJ.so.8.0.0 +0 -0
  18. package/lib/libTKDEPLY.so.8.0.0 +0 -0
  19. package/lib/libTKDESTEP.so.8.0.0 +0 -0
  20. package/lib/libTKDESTL.so.8.0.0 +0 -0
  21. package/lib/libTKDEVRML.so.8.0.0 +0 -0
  22. package/lib/libTKExpress.so.8.0.0 +0 -0
  23. package/lib/libTKFeat.so.8.0.0 +0 -0
  24. package/lib/libTKFillet.so.8.0.0 +0 -0
  25. package/lib/libTKG2d.so.8.0.0 +0 -0
  26. package/lib/libTKG3d.so.8.0.0 +0 -0
  27. package/lib/libTKGeomAlgo.so.8.0.0 +0 -0
  28. package/lib/libTKGeomBase.so.8.0.0 +0 -0
  29. package/lib/libTKHLR.so.8.0.0 +0 -0
  30. package/lib/libTKHelix.so.8.0.0 +0 -0
  31. package/lib/libTKLCAF.so.8.0.0 +0 -0
  32. package/lib/libTKMath.so.8.0.0 +0 -0
  33. package/lib/libTKMesh.so.8.0.0 +0 -0
  34. package/lib/libTKOffset.so.8.0.0 +0 -0
  35. package/lib/libTKPrim.so.8.0.0 +0 -0
  36. package/lib/libTKRWMesh.so.8.0.0 +0 -0
  37. package/lib/libTKService.so.8.0.0 +0 -0
  38. package/lib/libTKShHealing.so.8.0.0 +0 -0
  39. package/lib/libTKStd.so.8.0.0 +0 -0
  40. package/lib/libTKStdL.so.8.0.0 +0 -0
  41. package/lib/libTKTObj.so.8.0.0 +0 -0
  42. package/lib/libTKTopAlgo.so.8.0.0 +0 -0
  43. package/lib/libTKV3d.so.8.0.0 +0 -0
  44. package/lib/libTKVCAF.so.8.0.0 +0 -0
  45. package/lib/libTKXCAF.so.8.0.0 +0 -0
  46. package/lib/libTKXMesh.so.8.0.0 +0 -0
  47. package/lib/libTKXSBase.so.8.0.0 +0 -0
  48. package/lib/libTKXml.so.8.0.0 +0 -0
  49. package/lib/libTKXmlL.so.8.0.0 +0 -0
  50. package/lib/libTKXmlTObj.so.8.0.0 +0 -0
  51. package/lib/libTKXmlXCAF.so.8.0.0 +0 -0
  52. package/lib/libTKernel.so.8.0.0 +0 -0
  53. package/lib/libdraco.so.1 +0 -0
  54. package/lib/libtbb.so.2 +0 -0
  55. package/lib/libtbbmalloc.so.2 +0 -0
  56. package/lib/libtbbmalloc_proxy.so.2 +0 -0
  57. package/occt_gltf_addon.node +0 -0
  58. package/package.json +6 -2
  59. package/resources/BOPAlgo/BOPAlgo.msg +129 -0
  60. package/resources/BOPAlgo/FILES +1 -0
  61. package/resources/DrawResources/CURVES.tcl +38 -0
  62. package/resources/DrawResources/CheckCommands.tcl +1206 -0
  63. package/resources/DrawResources/DrawDefault +130 -0
  64. package/resources/DrawResources/DrawPlugin +64 -0
  65. package/resources/DrawResources/DrawTK.tcl +623 -0
  66. package/resources/DrawResources/FILES +16 -0
  67. package/resources/DrawResources/Geometry.tcl +96 -0
  68. package/resources/DrawResources/InitEnvironment.tcl +50 -0
  69. package/resources/DrawResources/Move.tcl +85 -0
  70. package/resources/DrawResources/OCC_logo.png +0 -0
  71. package/resources/DrawResources/PROFIL.tcl +726 -0
  72. package/resources/DrawResources/SCAN.tcl +192 -0
  73. package/resources/DrawResources/SURFACES.tcl +35 -0
  74. package/resources/DrawResources/StandardCommands.tcl +451 -0
  75. package/resources/DrawResources/StandardViews.tcl +284 -0
  76. package/resources/DrawResources/TKTopTest.tcl +27 -0
  77. package/resources/DrawResources/TestCommands.tcl +2969 -0
  78. package/resources/DrawResources/Vector.tcl +402 -0
  79. package/resources/DrawResources/dfb_attribns.gif +0 -0
  80. package/resources/DrawResources/dfb_attribute.gif +0 -0
  81. package/resources/DrawResources/dfb_folder.gif +0 -0
  82. package/resources/DrawResources/dftree.tcl +381 -0
  83. package/resources/DrawResources/lamp.ico +0 -0
  84. package/resources/SHMessage/FILES +2 -0
  85. package/resources/SHMessage/SHAPE.fr +267 -0
  86. package/resources/SHMessage/SHAPE.us +267 -0
  87. package/resources/Shaders/Declarations.glsl +276 -0
  88. package/resources/Shaders/DeclarationsImpl.glsl +121 -0
  89. package/resources/Shaders/Display.fs +157 -0
  90. package/resources/Shaders/FILES +27 -0
  91. package/resources/Shaders/LightShadow.glsl +48 -0
  92. package/resources/Shaders/PBRCookTorrance.glsl +20 -0
  93. package/resources/Shaders/PBRDirectionalLight.glsl +20 -0
  94. package/resources/Shaders/PBRDistribution.glsl +9 -0
  95. package/resources/Shaders/PBREnvBaking.fs +226 -0
  96. package/resources/Shaders/PBREnvBaking.vs +55 -0
  97. package/resources/Shaders/PBRFresnel.glsl +36 -0
  98. package/resources/Shaders/PBRGeometry.glsl +13 -0
  99. package/resources/Shaders/PBRIllumination.glsl +28 -0
  100. package/resources/Shaders/PBRPointLight.glsl +27 -0
  101. package/resources/Shaders/PBRSpotLight.glsl +45 -0
  102. package/resources/Shaders/PathtraceBase.fs +993 -0
  103. package/resources/Shaders/PhongDirectionalLight.glsl +29 -0
  104. package/resources/Shaders/PhongPointLight.glsl +36 -0
  105. package/resources/Shaders/PhongShading.fs +191 -0
  106. package/resources/Shaders/PhongShading.vs +43 -0
  107. package/resources/Shaders/PhongSpotLight.glsl +52 -0
  108. package/resources/Shaders/PointLightAttenuation.glsl +35 -0
  109. package/resources/Shaders/RaytraceBase.fs +1236 -0
  110. package/resources/Shaders/RaytraceBase.vs +12 -0
  111. package/resources/Shaders/RaytraceRender.fs +134 -0
  112. package/resources/Shaders/RaytraceSmooth.fs +80 -0
  113. package/resources/Shaders/SkydomBackground.fs +300 -0
  114. package/resources/Shaders/TangentSpaceNormal.glsl +17 -0
  115. package/resources/StdResource/FILES +6 -0
  116. package/resources/StdResource/MigrationSheet.txt +21 -0
  117. package/resources/StdResource/Plugin +52 -0
  118. package/resources/StdResource/Standard +25 -0
  119. package/resources/StdResource/StandardLite +22 -0
  120. package/resources/StdResource/TObj +17 -0
  121. package/resources/StdResource/XCAF +50 -0
  122. package/resources/TObj/FILES +1 -0
  123. package/resources/TObj/TObj.msg +85 -0
  124. package/resources/Textures/1d_elevation.rgb +0 -0
  125. package/resources/Textures/2d_MatraDatavision.rgb +0 -0
  126. package/resources/Textures/2d_alienskin.rgb +0 -0
  127. package/resources/Textures/2d_aluminum.rgb +0 -0
  128. package/resources/Textures/2d_blue_rock.rgb +0 -0
  129. package/resources/Textures/2d_bluewhite_paper.rgb +0 -0
  130. package/resources/Textures/2d_brushed.rgb +0 -0
  131. package/resources/Textures/2d_bubbles.rgb +0 -0
  132. package/resources/Textures/2d_bumps.rgb +0 -0
  133. package/resources/Textures/2d_cast.rgb +0 -0
  134. package/resources/Textures/2d_chess.rgba +0 -0
  135. package/resources/Textures/2d_chipbd.rgb +0 -0
  136. package/resources/Textures/2d_clouds.rgb +0 -0
  137. package/resources/Textures/2d_flesh.rgb +0 -0
  138. package/resources/Textures/2d_floor.rgb +0 -0
  139. package/resources/Textures/2d_galvnisd.rgb +0 -0
  140. package/resources/Textures/2d_grass.rgb +0 -0
  141. package/resources/Textures/2d_knurl.rgb +0 -0
  142. package/resources/Textures/2d_maple.rgb +0 -0
  143. package/resources/Textures/2d_marble.rgb +0 -0
  144. package/resources/Textures/2d_mottled.rgb +0 -0
  145. package/resources/Textures/2d_rain.rgb +0 -0
  146. package/resources/Textures/2d_rock.rgb +0 -0
  147. package/resources/Textures/FILES +31 -0
  148. package/resources/Textures/env_clouds.rgb +0 -0
  149. package/resources/Textures/env_cv.rgb +0 -0
  150. package/resources/Textures/env_lines.rgb +0 -0
  151. package/resources/Textures/env_medit.rgb +0 -0
  152. package/resources/Textures/env_pearl.rgb +0 -0
  153. package/resources/Textures/env_road.rgb +0 -0
  154. package/resources/Textures/env_sky1.rgb +0 -0
  155. package/resources/Textures/env_sky2.rgb +0 -0
  156. package/resources/UnitsAPI/CurrentUnits +74 -0
  157. package/resources/UnitsAPI/FILES +4 -0
  158. package/resources/UnitsAPI/MDTVBaseUnits +70 -0
  159. package/resources/UnitsAPI/MDTVCurrentUnits +74 -0
  160. package/resources/UnitsAPI/Units.dat +481 -0
  161. package/resources/XRResources/FILES +10 -0
  162. package/resources/XRResources/occtvr_actions.json +225 -0
  163. package/resources/XRResources/occtvr_bindings_generic.json +87 -0
  164. package/resources/XRResources/occtvr_bindings_holographic_hmd.json +18 -0
  165. package/resources/XRResources/occtvr_bindings_index_hmd.json +18 -0
  166. package/resources/XRResources/occtvr_bindings_rift.json +18 -0
  167. package/resources/XRResources/occtvr_bindings_touch.json +160 -0
  168. package/resources/XRResources/occtvr_bindings_vive.json +18 -0
  169. package/resources/XRResources/occtvr_bindings_vive_controller.json +139 -0
  170. package/resources/XRResources/occtvr_bindings_vive_cosmos.json +18 -0
  171. package/resources/XRResources/occtvr_bindings_vive_pro.json +18 -0
  172. package/resources/XSMessage/FILES +2 -0
  173. package/resources/XSMessage/XSTEP.fr +1026 -0
  174. package/resources/XSMessage/XSTEP.us +1023 -0
  175. package/resources/XSTEPResource/FILES +2 -0
  176. package/resources/XSTEPResource/IGES +65 -0
  177. package/resources/XSTEPResource/STEP +68 -0
  178. package/resources/XmlOcafResource/FILES +11 -0
  179. package/resources/XmlOcafResource/XmlOcaf.xsd +131 -0
  180. package/resources/XmlOcafResource/XmlOcaf_SmallTypes.xsd +217 -0
  181. package/resources/XmlOcafResource/XmlOcaf_TDF.xsd +33 -0
  182. package/resources/XmlOcafResource/XmlOcaf_TDataStd.xsd +230 -0
  183. package/resources/XmlOcafResource/XmlOcaf_TDataStd_Name.xsd +37 -0
  184. package/resources/XmlOcafResource/XmlOcaf_TDocStd.xsd +37 -0
  185. package/resources/XmlOcafResource/XmlOcaf_TFunction.xsd +38 -0
  186. package/resources/XmlOcafResource/XmlOcaf_TNaming.xsd +128 -0
  187. package/resources/XmlOcafResource/XmlOcaf_TNaming_NamedShape.xsd +97 -0
  188. package/resources/XmlOcafResource/XmlOcaf_TPrsStd.xsd +42 -0
  189. package/resources/XmlOcafResource/XmlXcaf.xsd +109 -0
  190. package/resources/samples/tcl/ANC101.tcl +282 -0
  191. package/resources/samples/tcl/DataExchangeDemo.tcl +85 -0
  192. package/resources/samples/tcl/MBBGehauseRohteil.tcl +268 -0
  193. package/resources/samples/tcl/ModelingDemo.tcl +120 -0
  194. package/resources/samples/tcl/Penrose.tcl +87 -0
  195. package/resources/samples/tcl/Readme.txt +4 -0
  196. package/resources/samples/tcl/VisualizationDemo.tcl +162 -0
  197. package/resources/samples/tcl/bottle.tcl +115 -0
  198. package/resources/samples/tcl/cad.tcl +63 -0
  199. package/resources/samples/tcl/cpu.tcl +327 -0
  200. package/resources/samples/tcl/cutter.tcl +91 -0
  201. package/resources/samples/tcl/dimensions.tcl +83 -0
  202. package/resources/samples/tcl/drill.tcl +147 -0
  203. package/resources/samples/tcl/logo2019.tcl +89 -0
  204. package/resources/samples/tcl/markers.tcl +76 -0
  205. package/resources/samples/tcl/materials.tcl +75 -0
  206. package/resources/samples/tcl/pathtrace_ball.tcl +79 -0
  207. package/resources/samples/tcl/pathtrace_cube.tcl +85 -0
  208. package/resources/samples/tcl/pathtrace_materials.tcl +229 -0
  209. package/resources/samples/tcl/pencil.tcl +64 -0
  210. package/resources/samples/tcl/raytrace.tcl +44 -0
  211. package/resources/samples/tcl/snowflake.tcl +161 -0
  212. package/resources/samples/tcl/spheres.tcl +148 -0
  213. package/resources/samples/tcl/vis_pbr_spheres.tcl +94 -0
  214. package/resources/samples/tcl/xde.tcl +47 -0
@@ -0,0 +1,96 @@
1
+ # Copyright (c) 1999-2014 OPEN CASCADE SAS
2
+ #
3
+ # This file is part of Open CASCADE Technology software library.
4
+ #
5
+ # This library is free software; you can redistribute it and/or modify it under
6
+ # the terms of the GNU Lesser General Public License 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.
10
+ #
11
+ # Alternatively, this file may be used under the terms of Open CASCADE
12
+ # commercial license or contractual agreement.
13
+
14
+ proc cmp {} {
15
+ dtyp .
16
+ set name [lastrep id x y b]
17
+ global $name
18
+ lastrep id x1 y1 z1 b
19
+ cfindp $name id x y pole
20
+ if {[dval pole] == 0} return
21
+ dset x0 x1 y0 y1 z0 z1 b 0
22
+ draw id 6 $name
23
+ while {[dval b] == 0} {
24
+ pick id x2 y2 z2 b nowait
25
+ dset dx x2-x1 dy y2-y1 dz z2-z1 x1 x2 y1 y2 z1 z2
26
+ draw id 6 $name
27
+ cmovep $name pole dx dy dz
28
+ draw id 6 $name
29
+ }
30
+ draw id 6 $name
31
+ if {[dval b] == 1} return;
32
+ dset dx x0-x2 dy y0-y2 dz z0-z2
33
+ cmovep $name pole dx dy dz
34
+ }
35
+
36
+ proc smp {} {
37
+ dtyp .
38
+ set name [lastrep id x y b]
39
+ global $name
40
+ lastrep id x1 y1 z1 b
41
+ sfindp $name id x y upole vpole
42
+ if {[dval upole] == 0} return
43
+ dset x0 x1 y0 y1 z0 z1 b 0
44
+ draw id 6 $name
45
+ while { [dval b] == 0} {
46
+ pick id x2 y2 z2 b nowait
47
+ dset dx x2-x1 dy y2-y1 dz z2-z1 x1 x2 y1 y2 z1 z2
48
+ draw id 6 $name
49
+ movep $name upole vpole dx dy dz
50
+ draw id 6 $name
51
+ }
52
+ draw id 6 $name
53
+ if {[dval b] == 1} return
54
+ dset dx x0-x2 dy y0-y2 dz z0-z2
55
+ movep $name upole vpole dx dy dz
56
+ }
57
+
58
+ #################################################
59
+ # smooth
60
+ #################################################
61
+
62
+ help smooth {smooth cname tol [filename] } "DRAW Variables management"
63
+
64
+ proc smooth {name tol {file ""}} {
65
+ if {$file == ""} {
66
+ uplevel #0 "bsmooth $name $tol"
67
+ } else {
68
+ global Draw_DataDir
69
+ uplevel #0 "bsmooth $name $tol $Draw_DataDir/$file"
70
+ }
71
+ return $name
72
+ }
73
+
74
+ #################################################
75
+ # beziersmooth
76
+ #################################################
77
+
78
+ help beziersmooth { beziersmooth cname tol deg [-GR -VA -PR] [filename] } "DRAW Variables management"
79
+
80
+ proc beziersmooth {name tol deg option {file ""}} {
81
+ if {$file == ""} {
82
+ uplevel #0 "bzsmooth $name $tol $deg $option"
83
+ } else {
84
+ global Draw_DataDir
85
+ uplevel #0 "bzsmooth $name $tol $deg $option $Draw_DataDir/$file"
86
+ }
87
+ return $name
88
+ }
89
+
90
+ help pickf {name : extract picked with mouse face as a new variable\
91
+ } {DRAW Variables management}
92
+
93
+ proc pickf {name} {
94
+ global $name
95
+ eval renamevar "[pickface]" $name
96
+ }
@@ -0,0 +1,50 @@
1
+ # Copyright (c) 1999-2014 OPEN CASCADE SAS
2
+ #
3
+ # This file is part of Open CASCADE Technology software library.
4
+ #
5
+ # This library is free software; you can redistribute it and/or modify it under
6
+ # the terms of the GNU Lesser General Public License 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.
10
+ #
11
+ # Alternatively, this file may be used under the terms of Open CASCADE
12
+ # commercial license or contractual agreement.
13
+
14
+ ################################################
15
+ #
16
+ # find the name of the station
17
+ #
18
+ ################################################
19
+ proc wokstation {} {
20
+ set LINE_FROM_UNAME [ exec uname -a ] ;
21
+ if { [ regexp SunOS $LINE_FROM_UNAME ] } {
22
+ return "sun"
23
+ } elseif { [ regexp IRIX $LINE_FROM_UNAME ] } {
24
+ return "sil"
25
+ } elseif { [ regexp OSF $LINE_FROM_UNAME ] } {
26
+ return "ao1"
27
+ } elseif { [ regexp HP-UX $LINE_FROM_UNAME ] } {
28
+ return "hp"
29
+ } elseif { [ regexp Linux $LINE_FROM_UNAME ] } {
30
+ return "lin"
31
+ } elseif { [ regexp FreeBSD $LINE_FROM_UNAME ] } {
32
+ return "bsd"
33
+ } elseif { [ regexp Darwin $LINE_FROM_UNAME ] } {
34
+ return "mac"
35
+ } elseif { [ regexp AIX $LINE_FROM_UNAME ] } {
36
+ return "aix"
37
+ } else {
38
+ return "wnt"
39
+ }
40
+
41
+ }
42
+
43
+ set env(STATION) [ wokstation ]
44
+
45
+ # PMN LE 6/06/1997
46
+ # Ce type d'environnement n'a rien n'a faire dans les sources
47
+ # On doit le faire dans des ilots.tcl ou des ud.tcl ou bien
48
+ # dans les procedures de test externes a WOK
49
+ #set env(WBCONTAINER) /adv_20/BAG
50
+ #set env(WBROOT) "/adv_21/MDL/k1deb/ref"
@@ -0,0 +1,85 @@
1
+ # Copyright (c) 1999-2014 OPEN CASCADE SAS
2
+ #
3
+ # This file is part of Open CASCADE Technology software library.
4
+ #
5
+ # This library is free software; you can redistribute it and/or modify it under
6
+ # the terms of the GNU Lesser General Public License 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.
10
+ #
11
+ # Alternatively, this file may be used under the terms of Open CASCADE
12
+ # commercial license or contractual agreement.
13
+
14
+ #
15
+ # 02/02/1996 : pbo : creation
16
+ # 25/10/1996 : pbo : add 2d view
17
+ #
18
+ # rotation/panning/zoom with buttons
19
+ #
20
+
21
+ frame .move -relief groove -borderwidth 1
22
+ #toplevel .move
23
+
24
+ frame .move.rotate -borderwidth 1
25
+ label .move.rotate.title -text " Rotation "
26
+ button .move.rotate.l -text " < " -command {l ; repaint}
27
+ button .move.rotate.r -text " > " -command {r ; repaint}
28
+ button .move.rotate.u -text " ^ " -command {u ; repaint}
29
+ button .move.rotate.d -text " v " -command {d ; repaint}
30
+ pack .move.rotate.title -side top
31
+ pack .move.rotate.l -side left
32
+ pack .move.rotate.r -side right
33
+ pack .move.rotate.u -side top
34
+ pack .move.rotate.d -side bottom
35
+ pack .move.rotate
36
+
37
+ frame .move.panning -borderwidth 1
38
+ label .move.panning.title -text " Panning "
39
+ button .move.panning.l -text " < " -command {pl ; 2dpl ; repaint}
40
+ button .move.panning.r -text " > " -command {pr ; 2dpr ; repaint}
41
+ button .move.panning.u -text " ^ " -command {pu ; 2dpu ; repaint}
42
+ button .move.panning.d -text " v " -command {pd ; 2dpd ; repaint}
43
+ pack .move.panning.title -side top
44
+ pack .move.panning.l -side left
45
+ pack .move.panning.r -side right
46
+ pack .move.panning.u -side top
47
+ pack .move.panning.d -side bottom
48
+ pack .move.panning
49
+
50
+ frame .move.zoom -borderwidth 1
51
+ label .move.zoom.title -text " Zoom "
52
+ button .move.zoom.mu -text " + " -command {mu ; 2dmu ; repaint}
53
+ button .move.zoom.md -text " - " -command {md ; 2dmd ; repaint}
54
+ button .move.zoom.fit -text "max" -command {fit ; 2dfit; repaint}
55
+ button .move.zoom.w -text "win" -command {wzoom ; repaint}
56
+ pack .move.zoom.title -side top
57
+ pack .move.zoom.w -side left
58
+ pack .move.zoom.fit -side right
59
+ pack .move.zoom.mu -side top
60
+ pack .move.zoom.md -side bottom
61
+ pack .move.zoom
62
+
63
+ frame .pick -borderwidth 1
64
+ label .pick.title -text " Pick "
65
+ button .pick.coords -text "Coords" -command {catch {puts [mpick]}}
66
+ button .pick.dist -text "Dist" -command {catch {puts [mdist]}}
67
+ button .pick.whatis -text "What is" -command {catch {puts [whatis .]}}
68
+ button .pick.erase -text "Erase" -command {catch {puts [erase .]}}
69
+ pack .pick.title
70
+ pack .pick.coords -pady 2 -padx 10
71
+ pack .pick.dist -pady 2 -padx 10
72
+ pack .pick.whatis -pady 2 -padx 10
73
+ pack .pick.erase -pady 2 -padx 10
74
+
75
+ set ShowExtCommands 0
76
+
77
+ proc ShowHideExtCommands {} {
78
+ global ShowExtCommands
79
+ if $ShowExtCommands {
80
+ pack .move -pady 1 -padx 1 -side left
81
+ pack .pick -pady 1 -padx 1
82
+ } else {
83
+ pack forget .move .pick
84
+ }
85
+ }