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,284 @@
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
+ # view management scripts
16
+ #
17
+ #
18
+
19
+ proc mu4 {} {
20
+ global tcl_platform
21
+ set stationname $tcl_platform(platform)
22
+ delete
23
+ # if { ${stationname} == "windows" } {
24
+ # view 1 +X+Z 20 20 300 300
25
+ # view 2 +X+Y 20 350 300 300
26
+ # view 3 -Y+Z 328 20 300 300
27
+ # view 4 AXON 328 350 300 300
28
+ # } else {
29
+ view 1 +X+Z 320 20 400 400
30
+ view 2 +X+Y 320 450 400 400
31
+ view 3 -Y+Z 728 20 400 400
32
+ view 4 AXON 728 450 400 400
33
+ # }
34
+ }
35
+
36
+ help mu4 ", Four views layout" "DRAW Graphic Commands"
37
+
38
+ proc mu7 {} {
39
+ delete
40
+ view 1 +Y+Z 0 300 275 270
41
+ view 2 +X-Y 285 0 275 270
42
+ view 3 +X+Z 285 300 275 270
43
+ view 4 +X+Y 285 600 275 270
44
+ view 5 -Y+Z 570 300 275 270
45
+ view 6 -X+Z 855 300 275 270
46
+ view 7 AXON 855 600 275 270
47
+ }
48
+ help mu7 ", Seven views layout" "DRAW Graphic Commands"
49
+
50
+ proc mu8 {} {
51
+ delete
52
+ view 1 +Y+Z 0 300 275 270
53
+ view 2 +X-Y 285 0 275 270
54
+ view 3 +X+Z 285 300 275 270
55
+ view 4 +X+Y 285 600 275 270
56
+ view 5 -Y+Z 570 300 275 270
57
+ view 6 PERS 855 0 275 270
58
+ view 7 -X+Z 855 300 275 270
59
+ view 8 AXON 855 600 275 270
60
+ }
61
+ help mu8 ", Seven views layout" "DRAW Graphic Commands"
62
+
63
+ proc mu24 {} {
64
+ delete
65
+ view 1 +X+Y 0 0 180 190
66
+ view 2 -Y+X 0 220 180 190
67
+ view 3 -X-Y 0 440 180 190
68
+ view 4 +Y-X 0 660 180 190
69
+
70
+ view 5 +Y+X 190 0 180 190
71
+ view 6 -X+Y 190 220 180 190
72
+ view 7 -Y-X 190 440 180 190
73
+ view 8 +X-Y 190 660 180 190
74
+
75
+ view 9 +X+Z 380 0 180 190
76
+ view 10 -Z+X 380 220 180 190
77
+ view 11 -X-Z 380 440 180 190
78
+ view 12 +Z-X 380 660 180 190
79
+
80
+ view 13 +Z+X 570 0 180 190
81
+ view 14 -X+Z 570 220 180 190
82
+ view 15 -Z-X 570 440 180 190
83
+ view 16 +X-Z 570 660 180 190
84
+
85
+ view 17 +Y+Z 760 0 180 190
86
+ view 18 -Z+Y 760 220 180 190
87
+ view 19 -Y-Z 760 440 180 190
88
+ view 20 +Z-Y 760 660 180 190
89
+
90
+ view 21 +Z+Y 950 0 180 190
91
+ view 22 -Y+Z 950 220 180 190
92
+ view 23 -Z-Y 950 440 180 190
93
+ view 24 +Y-Z 950 660 180 190
94
+
95
+ }
96
+ help mu24 ", 24 views layout" "DRAW Graphic Commands"
97
+
98
+ proc axo {} {
99
+ global tcl_platform
100
+ set stationname $tcl_platform(platform)
101
+ delete
102
+ # if { ${stationname} == "windows" } {
103
+ # view 1 AXON 10 120 600 600
104
+ # } else {
105
+ view 1 AXON 465 20 800 800
106
+ # }
107
+ }
108
+ help axo ", One axonometric view. Orientation +X-Y+Z" "DRAW Graphic Commands"
109
+
110
+ proc haxo {} {
111
+ delete
112
+ view 1 AXON 465 20 800 800*20.4/29.1
113
+ }
114
+ help haxo ", One axonometric horizontal view. Orientation +X-Y+Z" "DRAW Graphic Commands"
115
+
116
+ proc vaxo {} {
117
+ delete
118
+ view 1 AXON 705 20 800*20.4/29.1 800
119
+ }
120
+ help vaxo ", One axonometric vertical view. Orientation +X-Y+Z" "DRAW Graphic Commands"
121
+
122
+ proc pers {} {
123
+ delete
124
+ view 1 PERS 465 20 800 800
125
+ }
126
+ help pers ", One perspective view" "DRAW Graphic Commands"
127
+
128
+ proc hpers {} {
129
+ delete
130
+ view 1 PERS 465 20 800 800*20.4/29.1
131
+ }
132
+ help hpers ", One perspective horizontal view" "DRAW Graphic Commands"
133
+
134
+ proc vpers {} {
135
+ delete
136
+ view 1 PERS 705 20 800*20.4/29.1 800
137
+ }
138
+ help vpers ", One perspective vertical view" "DRAW Graphic Commands"
139
+
140
+ proc front {} {
141
+ delete
142
+ view 1 +X+Z 465 20 800 800
143
+ }
144
+ help front ", One front view. Orientation +X+Z" "DRAW Graphic Commands"
145
+
146
+ proc hfront {} {
147
+ delete
148
+ view 1 +X+Z 465 20 800 800*20.4/29.1
149
+ }
150
+ help hfront ", One front horizontal view. Orientation +X+Z" "DRAW Graphic Commands"
151
+
152
+ proc vfront {} {
153
+ delete
154
+ view 1 +X+Z 705 20 800*20.4/29.1 800
155
+ }
156
+ help vfront ", One front vertical view. Orientation +X+Z" "DRAW Graphic Commands"
157
+
158
+ proc top {} {
159
+ delete
160
+ view 1 +X+Y 465 20 800 800
161
+ }
162
+ help top ", One top view. Orientation +X+Y" "DRAW Graphic Commands"
163
+
164
+ proc htop {} {
165
+ delete
166
+ view 1 +X+Y 465 20 800 800*20.4/29.1
167
+ }
168
+ help htop ", One top horizontal view. Orientation +X+Y" "DRAW Graphic Commands"
169
+
170
+ proc vtop {} {
171
+ delete
172
+ view 1 +X+Y 705 20 800*20.4/29.1 800
173
+ }
174
+ help vtop ", One top vertical view. Orientation +X+Y" "DRAW Graphic Commands"
175
+
176
+ proc left {} {
177
+ delete
178
+ view 1 -Y+Z 465 20 800 800
179
+ }
180
+ help left ", One left view. Orientation -Y+Z" "DRAW Graphic Commands"
181
+
182
+ proc hleft {} {
183
+ delete
184
+ view 1 -Y+Z 465 20 800 800*20.4/29.1
185
+ }
186
+ help hleft ", One left horizontal view. Orientation -Y+Z" "DRAW Graphic Commands"
187
+
188
+ proc vleft {} {
189
+ delete
190
+ view 1 -Y+Z 705 20 800*20.4/29.1 800
191
+ }
192
+ help vleft ", One left vertical view. Orientation -Y+Z" "DRAW Graphic Commands"
193
+
194
+ proc back {} {
195
+ delete
196
+ view 1 -X+Z 465 20 800 800
197
+ }
198
+ help back ", One back view. Orientation -X+Z" "DRAW Graphic Commands"
199
+
200
+ proc hback {} {
201
+ delete
202
+ view 1 -X+Z 465 20 800 800*20.4/29.1
203
+ }
204
+ help hback ", One back horizontal view. Orientation -X+Z" "DRAW Graphic Commands"
205
+
206
+ proc vback {} {
207
+ delete
208
+ view 1 -X+Z 705 20 800*20.4/29.1 800
209
+ }
210
+ help vback ", One back vertical view. Orientation -X+Z" "DRAW Graphic Commands"
211
+
212
+ proc right {} {
213
+ delete
214
+ view 1 +Y+Z 465 20 800 800
215
+ }
216
+ help right ", One right view. Orientation +Y+Z" "DRAW Graphic Commands"
217
+
218
+ proc hright {} {
219
+ delete
220
+ view 1 +Y+Z 465 20 800 800*20.4/29.1
221
+ }
222
+ help hright ", One right horizontal view. Orientation +Y+Z" "DRAW Graphic Commands"
223
+
224
+ proc vright {} {
225
+ delete
226
+ view 1 +Y+Z 705 20 800*20.4/29.1 800
227
+ }
228
+ help vright ", One right vertical view. Orientation +Y+Z" "DRAW Graphic Commands"
229
+
230
+ proc bottom {} {
231
+ delete
232
+ view 1 +X-Y 465 20 800 800
233
+ }
234
+ help bottom ", One bottom view. Orientation +X-Y" "DRAW Graphic Commands"
235
+
236
+ proc hbottom {} {
237
+ delete
238
+ view 1 +X-Y 465 20 800 800*20.4/29.1
239
+ }
240
+ help hbottom ", One bottom horizontal view. Orientation +X-Y" "DRAW Graphic Commands"
241
+
242
+ proc vbottom {} {
243
+ delete
244
+ view 1 +X-Y 705 20 800*20.4/29.1 800
245
+ }
246
+ help vbottom ", One bottom vertical view. Orientation +X-Y" "DRAW Graphic Commands"
247
+
248
+ proc v2d {} {
249
+ delete
250
+ view 1 -2D- 465 20 800 800
251
+ }
252
+ help v2d ", One 2d view" "DRAW Graphic Commands"
253
+
254
+ proc av2d {} {
255
+ delete
256
+ global tcl_platform
257
+ set stationname $tcl_platform(platform)
258
+ # if { ${stationname} == "windows" } {
259
+ # view 2 -2D- 328 20 300 300
260
+ # view 1 AXON 328 350 300 300
261
+ # } else {
262
+ view 2 -2D- 728 20 400 400
263
+ view 1 AXON 728 450 400 400
264
+ # }
265
+ }
266
+ help av2d ", axono and 2d view" "DRAW Graphic Commands"
267
+
268
+ proc v2d2 {} {
269
+ view 2 -2D- 728 20 400 400
270
+ }
271
+ help v2d2 "2d view on number 2" "DRAW Graphic Commands"
272
+
273
+ proc smallview {{v AXON}} {
274
+ global tcl_platform
275
+ set stationname $tcl_platform(platform)
276
+ delete
277
+ # if { ${stationname} == "windows" } {
278
+ # view 1 $v 328 350 300 300
279
+ # } else {
280
+ view 1 $v 728 450 400 400
281
+ # }
282
+ }
283
+
284
+ help smallview " AXON PERS -2D- +X+Y ..." "DRAW Graphic Commands"
@@ -0,0 +1,27 @@
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
+ set Draw_GEOMETRY 1
15
+
16
+ if {[array names ::env CSF_OCCTResourcePath] != "" && "$::env(CSF_OCCTResourcePath)" != "" && [file exists $::env(CSF_OCCTResourcePath)/DrawResources/CURVES.tcl]} {
17
+ source $env(CSF_OCCTResourcePath)/DrawResources/CURVES.tcl
18
+ } else {
19
+ source $env(CASROOT)/src/DrawResources/CURVES.tcl
20
+ }
21
+
22
+ if {[array names ::env CSF_OCCTResourcePath] != "" && "$::env(CSF_OCCTResourcePath)" != "" && [file exists $::env(CSF_OCCTResourcePath)/DrawResources/SURFACES.tcl]} {
23
+ source $env(CSF_OCCTResourcePath)/DrawResources/SURFACES.tcl
24
+ } else {
25
+ source $env(CASROOT)/src/DrawResources/SURFACES.tcl
26
+ }
27
+