occt-gltf-addon-linux-x64 0.1.0 → 0.1.2

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,381 @@
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
+ # Version 1.4 #
17
+ # by SZV #
18
+ # #
19
+ ###########################
20
+ #
21
+ # Open : double-clic or +
22
+ # Close : double-clic or -
23
+ # Refresh tree : close top level and re-open
24
+ #
25
+ # Attributes:
26
+ # white : interoperable
27
+ # white + c : non interoperable
28
+ # X : X Reference
29
+ # Red : not yet committed in transaction #0
30
+ #
31
+ #
32
+
33
+ proc __update { args } {
34
+ }
35
+
36
+ proc dftree { DDF_Browser } {
37
+
38
+ global env
39
+ global DFTREE_WINDOWS
40
+ global DFTREE_GLOBALS
41
+ global $DDF_Browser
42
+
43
+ puts $DDF_Browser
44
+
45
+ package require Tk
46
+
47
+ ## Create images
48
+ set DFTREE_GLOBALS(ImageLabel) [DFOpenImage dfb_folder.gif]
49
+ set DFTREE_GLOBALS(ImageAttrOther) [DFOpenImage dfb_attribute.gif]
50
+ set DFTREE_GLOBALS(ImageAttrNS) [DFOpenImage dfb_attribns.gif]
51
+
52
+ ## set DFTREE_LabelStyle [tixDisplayStyle imagetext \
53
+ ## -font 9x15bold \
54
+ ## -background Bisque3 \
55
+ ## ]
56
+
57
+ ## set DFTREE_LabelStyle1 [tixDisplayStyle imagetext \
58
+ ## -font 9x15bold \
59
+ ## -background Bisque3 \
60
+ ## -foreground SeaGreen2 \
61
+ ## ]
62
+
63
+ ## set DFTREE_AttributeStyle [tixDisplayStyle imagetext \
64
+ ## -font 9x15 \
65
+ ## -background Bisque3 \
66
+ ## ]
67
+
68
+ ## set DFTREE_AttributeStyle1 [tixDisplayStyle imagetext \
69
+ ## -font 9x15 \
70
+ ## -background Bisque3 \
71
+ ## -foreground DarkGreen \
72
+ ## ]
73
+
74
+ ## set DFTREE_AttributeStyle2 [tixDisplayStyle imagetext \
75
+ ## -font 9x15 \
76
+ ## -background Bisque3 \
77
+ ## -foreground Red \
78
+ ## ]
79
+
80
+ set w .$DDF_Browser
81
+ toplevel $w -width 700 -height 400 -background bisque3
82
+ wm minsize $w 700 400
83
+
84
+ ########
85
+ # Tree #
86
+ ########
87
+
88
+ #set tree1 [ttk::treeview $w.tree -show tree]
89
+ set tree1 [ttk::treeview $w.tree -show tree -xscrollcommand "$w.tree.xscroll set" -yscrollcommand "$w.tree.yscroll set"]
90
+ set aScrollX [ttk::scrollbar $w.tree.xscroll -command "$w.tree xview" -orient horizontal]
91
+ set aScrollY [ttk::scrollbar $w.tree.yscroll -command "$w.tree yview"]
92
+ pack $aScrollX -side bottom -fill x
93
+ pack $aScrollY -side right -fill y
94
+ $tree1 tag bind Label <<TreeviewOpen>> [list DFTREE:Tree:Open $DDF_Browser $w]
95
+ $tree1 tag configure Label -font 9x15bold -foreground DarkGreen
96
+ #$tree1 tag configure Attribute -font 9x15 -background bisque3
97
+ #$tree1 tag configure AttributeList -font 9x15 -background bisque3
98
+ pack $tree1 -expand yes -fill both -padx 4 -pady 4
99
+
100
+ # to see different fonts: /usr/openwin/lib/X11/fonts/misc or xlsfonts?
101
+ # 8x13 8x13bold 9x15 9x15bold
102
+ # hlist.font 8x13bold
103
+ # hlist.gap "15"
104
+ # hlist.indent "30"
105
+
106
+ set DFTREE_WINDOWS($w,tree) $tree1
107
+ set DFTREE_WINDOWS($w,root) [$tree1 insert {} end \
108
+ -text $DDF_Browser \
109
+ -values "" \
110
+ -tags Label]
111
+
112
+ # Here we need to open first node!
113
+
114
+ return
115
+ }
116
+
117
+ ###############################################################################
118
+ #
119
+ #
120
+ proc DFTREE:Tree:Open { DDF_Browser w } {
121
+
122
+ global DFTREE_WINDOWS
123
+ global DFTREE_GLOBALS
124
+ global $DDF_Browser
125
+
126
+ set df_tree $DFTREE_WINDOWS($w,tree)
127
+ set df_node [$df_tree focus]
128
+
129
+ #if {$df_node == $DFTREE_WINDOWS($w,root)} {
130
+ # This is root
131
+ set chdlist [$df_tree children $df_node]
132
+ if {$chdlist != {}} {
133
+ # The root branch already exists in hlist.
134
+ # Clear all its children to force the tree to be updated.
135
+ $df_tree delete $chdlist
136
+ }
137
+ #}
138
+
139
+ #update
140
+ DFTREE:Tree:Fill $DDF_Browser $df_tree $df_node
141
+ return
142
+ }
143
+
144
+ ###############################################################################
145
+ #
146
+ #
147
+ proc DFTREE:Tree:Fill { DDF_Browser df_tree df_node } {
148
+
149
+ global DFTREE_GLOBALS
150
+ global $DDF_Browser
151
+
152
+ set loc [lindex [$df_tree item $df_node -values] 0]
153
+ set type [lindex [$df_tree item $df_node -tags] 0]
154
+
155
+ switch -glob $type {
156
+
157
+ Label {
158
+ DFTREE:Tree:UpdateLabel $DDF_Browser $df_tree $df_node $loc
159
+ }
160
+
161
+ #AttributeList {
162
+ # DFTREE:Tree:UpdateAttributeList $DDF_Browser $df_tree $df_node $loc
163
+ #}
164
+
165
+ default {
166
+ }
167
+ }
168
+ return
169
+ }
170
+
171
+ ###############################################################################
172
+ # $df_entry is a label entry, "1:3:2" for example, or "" for root.
173
+ #
174
+ proc DFTREE:Tree:UpdateLabel { DDF_Browser df_tree df_node df_entry } {
175
+
176
+ global DFTREE_GLOBALS
177
+ global $DDF_Browser
178
+
179
+ foreach fullname [split [DFOpenLabel $DDF_Browser $df_entry] "\\" ] {
180
+ FCTREE:Tree:DecodeLabelItem $DDF_Browser $df_tree $df_node $df_entry $fullname
181
+ }
182
+ return
183
+ }
184
+
185
+ ###############################################################################
186
+ #
187
+ #
188
+ proc DFTREE:Tree:UpdateAttributeList { DDF_Browser df_tree df_node df_entry} {
189
+
190
+ global DFTREE_GLOBALS
191
+ global $DDF_Browser
192
+
193
+ set image_other $DFTREE_GLOBALS(ImageAttrOther)
194
+ set image_ns $DFTREE_GLOBALS(ImageAttrNS)
195
+ #set xrefimage $DFTREE_GLOBALS(ImageAttrOther)
196
+
197
+ # abv: index attributes
198
+ set num 0
199
+ set attributes [split [DFOpenAttributeList $DDF_Browser $df_entry ] "\\" ]
200
+ set iattributes {}
201
+ foreach fullname $attributes {
202
+ set num [expr $num + 1]
203
+ lappend fullname $num
204
+ lappend iattributes $fullname
205
+ }
206
+
207
+ foreach fullname [lsort $iattributes] {
208
+
209
+ # Information first split
210
+ set tmplist [split $fullname " "]
211
+ set name [lindex $tmplist 0]
212
+ set transaction [lindex $tmplist 1]
213
+ set valid [lindex $tmplist 2]
214
+ set forgotten [lindex $tmplist 3]
215
+ set backuped [lindex $tmplist 4]
216
+ set maybeopen [lindex $tmplist 5]
217
+
218
+ # Name analysis to suppress the map address.
219
+ set shortlist [split $name "#"]
220
+ set shortname [lindex $shortlist 0]
221
+ set index [lindex $shortlist 1]
222
+
223
+ # Package analysis to determine the icon type.
224
+ #set pk [lindex [split $name _] 0]
225
+ set node_img $image_other
226
+ #if {$pk == "TDataStd" || $pk == "TNaming"} {set node_img $standardimage}
227
+ #if {$pk == "TXRef"} {set node_img $xrefimage}
228
+ if {$shortname == "TNaming_NamedShape"} {set node_img $image_ns}
229
+
230
+ set textname "$shortname"
231
+
232
+ # if { [llength $tmplist] >5 } { set textname [lindex $tmplist 5] }
233
+ set textname "$textname [DFGetAttributeValue $DDF_Browser $df_entry [lindex $tmplist 6]]"
234
+
235
+ # Transaction analysis
236
+ if {$transaction == "0"} {
237
+ # set locstyle $DFTREE_AttributeStyle
238
+ } else {
239
+ # set textname "$textname T=$transaction"
240
+ # set locstyle $DFTREE_AttributeStyle1
241
+ }
242
+
243
+ # Valid?
244
+ if {$valid == "NotValid"} {set textname "$textname $valid"}
245
+
246
+ # Forgotten?
247
+ if {$forgotten == "Forgotten"} {set textname "$textname $forgotten"}
248
+
249
+ # Backuped?
250
+ if {$backuped == "Backuped"} {set textname "$textname $backuped"}
251
+
252
+ set df_new [$df_tree insert $df_node end \
253
+ -text $textname -image $node_img -tags Attribute]
254
+
255
+ if {$maybeopen == "1"} {
256
+ $df_tree item $df_new -open true
257
+ DFTREE:Tree:UpdateAttribute $DDF_Browser $df_tree $df_new $index
258
+ }
259
+ }
260
+ }
261
+
262
+ ###############################################################################
263
+ # $loc is always the attribute index
264
+ #
265
+ proc DFTREE:Tree:UpdateAttribute { DDF_Browser df_tree df_node a_index } {
266
+
267
+ global DFTREE_GLOBALS
268
+ global $DDF_Browser
269
+
270
+ set tmplist [split [DFOpenAttribute $DDF_Browser $a_index ] "\\"]
271
+
272
+ # Failed or not?
273
+ if {[lindex $tmplist 0] == "Failed"} {
274
+ ## set locstyle $DFTREE_AttributeStyle2
275
+ } else {
276
+ ## set locstyle $DFTREE_AttributeStyle
277
+ }
278
+
279
+ foreach name $tmplist {
280
+ $df_tree insert $df_node end -text $name -tags Terminal
281
+ }
282
+ return
283
+ }
284
+
285
+ ###############################################################################
286
+ # item:
287
+ # "Entry Name=TheNameIfExists Modified|NotModified 0|1"
288
+ proc FCTREE:Tree:DecodeLabelItem { DDF_Browser df_tree df_node df_entry labelItem} {
289
+
290
+ global DFTREE_GLOBALS
291
+ global $DDF_Browser
292
+
293
+ set tmplist [split $labelItem " " ]
294
+ set labname [lindex $tmplist 0]
295
+
296
+ set textname "$labname"
297
+
298
+ if {$labname == "AttributeList"} {
299
+
300
+ # Attribute List
301
+ # --------------
302
+
303
+ #set modified [lindex $tmplist 1]
304
+
305
+ # Modified or not?
306
+ #if {$modified == "Modified"} {
307
+ # set textname "$textname $modified"
308
+ ## set locstyle $DFTREE_AttributeStyle1
309
+ #} else {
310
+ ## set locstyle $DFTREE_AttributeStyle
311
+ #}
312
+
313
+ #set df_new [$df_tree insert $df_node end \
314
+ # -text $textname \
315
+ # -image $DFTREE_GLOBALS(ImageAttrList) \
316
+ # -tags AttributeList]
317
+
318
+ #$df_tree item $df_new -open true
319
+
320
+ DFTREE:Tree:UpdateAttributeList $DDF_Browser $df_tree $df_node $df_entry
321
+
322
+ } else {
323
+
324
+ # Sub-label(s)
325
+ # ------------
326
+
327
+ set name [lindex $tmplist 1]
328
+ set modified [lindex $tmplist 2]
329
+ set maybeopen [lindex $tmplist 3]
330
+
331
+ # Name?
332
+ set ll [expr [string length $name] -2]
333
+ if {$ll > 0} {
334
+ set textname "$textname [string range $name 1 $ll]"
335
+ }
336
+
337
+ # Modified or not?
338
+ if {$modified == "Modified"} {
339
+ set textname "$textname $modified"
340
+ }
341
+
342
+ set df_new [$df_tree insert $df_node end \
343
+ -text $textname \
344
+ -image $DFTREE_GLOBALS(ImageLabel) \
345
+ -values $labname \
346
+ -tags Label]
347
+
348
+ if {$maybeopen == "1"} {
349
+ $df_tree item $df_new -open true
350
+ }
351
+
352
+ DFTREE:Tree:UpdateLabel $DDF_Browser $df_tree $df_new $labname
353
+ }
354
+ }
355
+
356
+ ###############################################################################
357
+ #
358
+ #
359
+ proc DFGetAttributeValue { DDF_Browser lab index } {
360
+
361
+ global $DDF_Browser; # necessary for DRAW command to see the browser
362
+
363
+ if {[catch "XAttributeValue $DDF_Browser $lab $index" ret]} {
364
+ return ""
365
+ }
366
+ if {"$ret" == ""} { return "" }
367
+ return "\[$ret\]"
368
+ }
369
+
370
+ ###############################################################################
371
+ #
372
+ #
373
+ proc DFOpenImage { img } {
374
+
375
+ global env
376
+
377
+ if {[catch "image create photo -file $env(CSF_OCCTResourcePath)/DrawResources/$img" ret]} {
378
+ return ""
379
+ }
380
+ return $ret
381
+ }
Binary file
@@ -0,0 +1,2 @@
1
+ msgfile:::SHAPE.fr
2
+ msgfile:::SHAPE.us
@@ -0,0 +1,267 @@
1
+ ! Message file for Shape Healing
2
+
3
+
4
+ ! ------------------------------------------------------------------------------
5
+ ! Messages for shape names
6
+ !
7
+ .Name.Shape.MSG0
8
+ !
9
+ .Name.Vertex.MSG0
10
+ !
11
+ .Name.Edge.MSG0
12
+ !
13
+ .Name.Wire.MSG0
14
+ !
15
+ .Name.Face.MSG0
16
+ !
17
+ .Name.Shell.MSG0
18
+ !
19
+ .Name.Solid.MSG0
20
+ !
21
+ .Name.CompSolid.MSG0
22
+ !
23
+ .Name.Compound.MSG0
24
+ !
25
+ ! ------------------------------------------------------------------------------
26
+ ! Messages for sequence of operators
27
+ !
28
+ .SP.Sequence.Info.Seq
29
+ Sequence d'operateurs: %s
30
+ !
31
+ .SP.Sequence.Info.Operator
32
+ Operateur %d/%d: %s
33
+ !
34
+ .SP.Sequence.Error.NoOp
35
+ Error: Operator %s is not found
36
+ !
37
+ .SP.Sequence.Error.Except
38
+ Error: Operator %s failed with exception %s
39
+ !
40
+ .SP.Sequence.Warn.NoSeq
41
+ Warning: Shape Processing: sequence not defined for %s
42
+ !
43
+ ! ------------------------------------------------------------------------------
44
+ ! Messages for printing results of shape processing
45
+ !
46
+ .PrResult.Print.MSG50
47
+ Shells:
48
+ !
49
+ .PrResult.Print.MSG55
50
+ Faces:
51
+ !
52
+ .PrResult.Print.MSG100
53
+ Mapping:
54
+ !
55
+ .PrResult.Print.MSG110
56
+ Le Resultat est un Shell : %d
57
+ !
58
+ .PrResult.Print.MSG115
59
+ Le Resultat est une Face : %d
60
+ !
61
+ .PrResult.Print.MSG150
62
+ Pas de Resultat : %d
63
+ !
64
+ .PrResult.Print.MSG200
65
+ Taux de Preparation:
66
+ !
67
+ .PrResult.Print.MSG205
68
+ Shells: %d pour cent
69
+ !
70
+ .PrResult.Print.MSG210
71
+ Faces : %d pour cent
72
+ !
73
+ !
74
+ ! ==============================================================================
75
+ ! Messages for Shape Healing
76
+ !
77
+ ! ------------------------------------------------------------------------------
78
+ ! Messages for ShapeFix_Wire
79
+ !
80
+ .FixWire.FixDegenerated.MSG0
81
+ Detection d'Arete(s) degeneree(s)
82
+ !
83
+ .FixWire.FixDegenerated.MSG5
84
+ L'Arete n0 %d est degeneree
85
+ !
86
+ .FixWire.FixCurve3d.Removed
87
+ Incomplete edge (with no pcurves or 3d curve) removed
88
+ !
89
+ .FixAdvWire.FixSmall.MSG0
90
+ Petite(s) arete(s) supprimee(s)
91
+ !
92
+ .FixAdvWire.FixSmall.MSG5
93
+ L'arete n0 %d etait petite, supprimee
94
+ !
95
+ .FixAdvWire.FixIntersection.MSG0
96
+ Auto-intersection corrigee
97
+ !
98
+ .FixAdvWire.FixIntersection.MSG5
99
+ L'arete etait auto-intersectante, corrigee
100
+ !
101
+ .FixAdvWire.FixIntersection.MSG10
102
+ Les aretes s'intersectent, corrigees
103
+ !
104
+ .FixAdvWire.FixLacking.MSG0
105
+ Insertion d'arete(s) manquante(s)
106
+ !
107
+ .FixAdvWire.FixLacking.MSG5
108
+ Arete n0 %d manquante, inseree
109
+ !
110
+ .FixAdvWire..MSG0
111
+ !
112
+ .FixAdvWire..MSG5
113
+ !
114
+ .FixAdvWire..MSG10
115
+ !
116
+ ! ------------------------------------------------------------------------------
117
+ ! Messages for ShapeFix_Face
118
+ !
119
+ .FixAdvFace.FixMissingSeam.MSG0
120
+ Arete de couture manquante, ajoutee
121
+ !
122
+ .FixAdvFace.FixSmallAreaWire.MSG0
123
+ Contour d'aire nulle, supprime
124
+ !
125
+ .FixAdvFace.FixOrientation.MSG0
126
+ Face creee avec bords naturels
127
+ !
128
+ .FixAdvFace.FixOrientation.MSG5
129
+ Contour sur face inverse
130
+ !
131
+ .FixAdvFace.FixOrientation.MSG11
132
+ Impossible d'orienter le contour
133
+ !
134
+ ! ------------------------------------------------------------------------------
135
+ ! Messages for ShapeFix_Wireframe
136
+ !
137
+ .FixWireframe.FixSmallEdges.MSG0
138
+ Small edge removed
139
+ !
140
+ .FixWireframe.FixSmallEdges.MSG1
141
+ Small wire removed
142
+ !
143
+ .FixWireframe.FixSmallEdges.MSG2
144
+ Small face removed
145
+ !
146
+ .FixWireframe.FixFixWireGaps.MSG0
147
+ Gaps in a wire fixed
148
+ !
149
+ !
150
+ .Fix.SplitCommonVertex.MSG0
151
+ Wires with common vertex fixed
152
+ !
153
+ !
154
+ .FixAdvShell.FixOrientation.MSG20
155
+ Impossible d'orienter les faces dans le shell, creation de plusieurs shells
156
+ !
157
+ .FixAdvShell.FixOrientation.MSG30
158
+ Shell avec connexions incorrectes, divise en plusieurs parties
159
+ !
160
+ .FixAdvSolid.FixShell.MSG10
161
+ Impossible de creer un Solide a partir d'un shell ouvert
162
+ !
163
+ .FixAdvSolid.FixOrientation.MSG20
164
+ L'Orientation du/des shell(s) dans le solida ete corrigee
165
+ !
166
+ .FixAdvSolid.FixOrientation.MSG30
167
+ Solide avec connexions incorrectes, divise en plusieurs parties
168
+ !
169
+ .FixAdvFace.FixLoopWire.MSG0
170
+ Wire was split on several wires
171
+ !
172
+ .FixAdvFace..MSG5
173
+ !
174
+ .FixAdvFace..MSG10
175
+ !
176
+ .FixEdge.SameParameter.MSG0
177
+ Not same parameter edge fixed
178
+ !
179
+ ! ------------------------------------------------------------------------------
180
+ ! Messages for ShapeFix_FixSmallFace
181
+ !
182
+ .FixAdvFace.FixSpotFace.MSG0
183
+ Spot face removed
184
+ !
185
+ .FixAdvFace.FixStripFace.MSG0
186
+ Strip face removed
187
+ !
188
+ ! ------------------------------------------------------------------------------
189
+ ! Messages for ShapeFix_FixSmallSolid
190
+ !
191
+ .ShapeFix.FixSmallSolid.MSG0
192
+ Small solid removed
193
+ !
194
+ .ShapeFix.FixSmallSolid.MSG1
195
+ Small solid merged with other
196
+ !
197
+ ! ------------------------------------------------------------------------------
198
+ ! Messages for ShapeFix_Shell
199
+ !
200
+ .FixAdvShell.FixOrientation.MSG0
201
+ Faces mal orientees dans le shell, corrigees
202
+ !
203
+ .FixAdvShell.FixOrientation.MSG5
204
+ Faces mal orientees dans le shell, non corrigees
205
+ !
206
+ .FixAdvShell.FixClosedFlag.MSG0
207
+ Shell has incorrect flag isClosed
208
+ !
209
+ .FixAdvShell..MSG5
210
+ !
211
+ .FixAdvShell..MSG10
212
+ !
213
+ ! ------------------------------------------------------------------------------
214
+ ! Messages for ShapeUpgrade
215
+ !
216
+ .ShapeDivide.FaceDivide.MSG0
217
+ Face divided
218
+ !
219
+ .ShapeDivide.WireDivide.MSG0
220
+ Wire divided
221
+ !
222
+ .ShapeDivide.EdgeDivide.MSG0
223
+ Edge divided
224
+ !
225
+ .ShapeDivide.FaceConvertToBezier.MSG0
226
+ Face converted to Bezier
227
+ !
228
+ .ShapeDivide.WireConvertToBezier.MSG0
229
+ Wire converted to Bezier
230
+ !
231
+ .ShapeDivide.EdgeConvertToBezier.MSG0
232
+ Edge converted to Bezier
233
+ !
234
+ ! ------------------------------------------------------------------------------
235
+ ! Messages for ShapeCustom
236
+ !
237
+ .BSplineRestriction.NewSurface.MSG0
238
+ Face converted to BSpline
239
+ !
240
+ .BSplineRestriction.NewSurface.MSG1
241
+ BSpline Face re-approximated
242
+ !
243
+ .BSplineRestriction.NewCurve.MSG0
244
+ Edge converted to BSpline
245
+ !
246
+ .BSplineRestriction.NewCurve.MSG1
247
+ BSpline Edge re-approximated
248
+ !
249
+ !
250
+ .ConvertToBSpline.NewSurface.MSG0
251
+ Face converted to BSpline
252
+ !
253
+ .ConvertToBSpline.NewCurve.MSG0
254
+ Edge converted to BSpline
255
+ !
256
+ !
257
+ .ConvertToRevolution.NewSurface.MSG0
258
+ Face converted to surface of revolution
259
+ !
260
+ !
261
+ .DirectModification.NewSurface.MSG0
262
+ Direction of Face of revolution corrected
263
+ !
264
+ !
265
+ .SweptToElementary.NewSurface.MSG0
266
+ Swept Face converted to elementary
267
+ !