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,130 @@
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
+ # This script is to be executed automatically at DRAWEXE start.
15
+ #
16
+ # For that to happen, either environment DRAWDEFAULT should be set pointing
17
+ # to this file, or CASROOT variable should be set, so that the script is
18
+ # found as $CASROOT/src/DrawResources/DrawDefault
19
+
20
+ # indicate that DRAW is interactive environment
21
+ set tcl_interactive 1
22
+
23
+ # define location of standard DRAW scripts; normally it is
24
+ # $CASROOT/src/DrawResources
25
+ set dir ""
26
+ if { [info exists env(DRAWHOME) ] } {
27
+ set dir $env(DRAWHOME)
28
+ } else {
29
+ if { [info exists env(CASROOT) ] } {
30
+ set dir [file join $env(CASROOT) src DrawResources]
31
+ if { ! [file isdirectory $dir] } {
32
+ set dir [file join $env(CASROOT) resources DrawResources]
33
+ }
34
+ } else {
35
+ puts "Warning: CASROOT is not defined, some features may not load correctly"
36
+ set dir [file dirname [info script]]
37
+ }
38
+ }
39
+
40
+ # load standard DRAW scripts
41
+ if { [file isdirectory $dir] } {
42
+ foreach script {StandardCommands.tcl Geometry.tcl StandardViews.tcl
43
+ TestCommands.tcl CheckCommands.tcl Vector.tcl} {
44
+ if [file exist [file join $dir $script]] {
45
+ source [file join $dir $script]
46
+ } else {
47
+ puts "Warning: could not find command file $script"
48
+ }
49
+ }
50
+
51
+ # and TK extensions
52
+ set stationname $tcl_platform(platform)
53
+ if [info exists tk_version] {
54
+ source [file join $dir DrawTK.tcl]
55
+ # setup the icon for main window
56
+ if { ${stationname} == "windows" } {
57
+ wm iconbitmap . -default [file join $dir lamp.ico]
58
+ }
59
+ wm title . Draw
60
+ }
61
+ } else {
62
+ puts "Warning: could not find DRAW directory"
63
+ }
64
+
65
+ # set default testing environment (unless already defined before)
66
+ if { ! [info exists env(CSF_TestScriptsPath)] } {
67
+ if {[info exists ::env(CSF_OCCTTestsPath)] && [file isdirectory $env(CSF_OCCTTestsPath)]} {
68
+ set env(CSF_TestScriptsPath) $env(CSF_OCCTTestsPath)
69
+ } elseif { [info exists env(CASROOT)] && [file isdirectory $env(CASROOT)/tests] } {
70
+ set env(CSF_TestScriptsPath) $env(CASROOT)/tests
71
+ }
72
+ }
73
+ if {[info exists ::env(CSF_OCCTDataPath)] && [file isdirectory $env(CSF_OCCTDataPath)]} {
74
+ if { ! [info exists env(CSF_TestDataPath)] } {
75
+ set env(CSF_TestDataPath) $env(CSF_OCCTDataPath)
76
+ } else {
77
+ set env(CSF_TestDataPath) $env(CSF_TestDataPath)[_path_separator]$env(CSF_OCCTDataPath)
78
+ }
79
+ } elseif { [info exists env(CASROOT)] && [file isdirectory $env(CASROOT)/tests] } {
80
+ if { ! [info exists env(CSF_TestDataPath)] } {
81
+ set env(CSF_TestDataPath) $env(CASROOT)/data
82
+ } else {
83
+ set env(CSF_TestDataPath) $env(CSF_TestDataPath)[_path_separator]$env(CASROOT)/data
84
+ }
85
+ }
86
+
87
+ # load application-defined initialization script, which is expected to
88
+ # be found either in the file pointed by environment variable CSF_DrawAppliInit,
89
+ # or in the file DrawAppliInit in the current directory
90
+ set draw_appli_init_file DrawAppliInit
91
+ if { [info exists env(CSF_DrawAppliInit)] } {
92
+ set draw_appli_init_file $env(CSF_DrawAppliInit)
93
+ }
94
+ if { [file readable $draw_appli_init_file] } {
95
+ if { [catch {source $draw_appli_init_file} res] } {
96
+ puts "Warning: problem while loading file $draw_appli_init_file: $res"
97
+ }
98
+ }
99
+
100
+ # on Windows, set special handler to update automatically environment variables
101
+ # in C subsystem when Tcl environment changes (see Mantis issue #23197)
102
+ if { $tcl_platform(platform) == "windows" && ! [catch {dgetenv PATH}] } {
103
+ proc _update_c_env {envenv var op} {
104
+ global env
105
+ if { $op == "unset" } {
106
+ if { $var != "" } {
107
+ dsetenv $var
108
+ } else {
109
+ #"array get env varname" command calls _update_c_env with op="unset" and var=""
110
+ #It leads to detach of trace from env array
111
+ trace add variable env array _update_c_env
112
+ trace add variable env read _update_c_env
113
+ trace add variable env write _update_c_env
114
+ trace add variable env unset _update_c_env
115
+ }
116
+ } elseif { $op == "write" } {
117
+ dsetenv $var $env($var)
118
+ } elseif { $op == "read" } {
119
+ return dgetenv $var
120
+ }
121
+ }
122
+ #Execute "trace add ..." block from _update_c_env proc
123
+ _update_c_env env "" "unset"
124
+ }
125
+
126
+ # arm signal handler with default FPE setting
127
+ dsetsignal
128
+
129
+ # silent return from the script
130
+ return
@@ -0,0 +1,64 @@
1
+ ! Description of available plugins for DRAW Test Harness
2
+ ! *****************************************************************************
3
+ !
4
+ ! Format of the file is compliant with the standard Open CASCADE resource files
5
+ ! (see the Resource_Manager.cdl file for details).
6
+ !
7
+ ! Each key defines a sequence of either further keys or a name of the dynamic
8
+ ! library. Keys can be nested down to an arbitrary level. However, make sure
9
+ ! there are no cyclic dependencies (internal checks are not performed).
10
+ !
11
+ ! For details how to implement a DRAW plugin refer to the Test Harness User's
12
+ ! Guide.
13
+ !
14
+ ! To load a plugin use the following command in DRAW:
15
+ !
16
+ ! Draw> pload [-PluginFileName] [[Key1] [Key2]...], where:
17
+ ! <-PluginFileName> - Defines the name of a resource file.
18
+ ! If this parameter is omitted then the default name DrawPlugin
19
+ ! is used.
20
+ ! According to the Open CASCADE resource file management rules
21
+ ! the environment variable CSF_<PluginFileName>Defaults must
22
+ ! be set and point to the directory storing the file. If it is
23
+ ! omitted then it defaults to $CASROOT/src/DrawResources.
24
+ ! [Key] - Defines the key(s) enumerating plugins to be loaded.
25
+ ! If no keys are specified then the key named DEFAULT is used
26
+ ! (if there is no such in the file then no plugins are loaded).
27
+ !
28
+ !
29
+ ! NOTE: Make sure the DATAEXCHANGE or XDE key succeeds the OCAF key in a sequence
30
+ !
31
+
32
+ DEFAULT : MODELING
33
+ MODELING : TOPTEST
34
+ VISUALIZATION : AISV
35
+ OCAFKERNEL : DCAF
36
+ DATAEXCHANGEKERNEL : XSDRAW, DE
37
+ OCAF : VISUALIZATION, OCAFKERNEL
38
+ DATAEXCHANGE : XDE, VISUALIZATION
39
+ XDE : DATAEXCHANGEKERNEL, XDEDRAW, STEP, IGES, GLTF, OBJ, PLY, STL, VRML
40
+ ALL : MODELING, OCAFKERNEL, DATAEXCHANGE
41
+
42
+ TOPTEST : TKTopTest
43
+ DCAF : TKDCAF
44
+ AISV : TKViewerTest
45
+ GL : TKOpenGlTest
46
+ OPENGL : TKOpenGlTest
47
+ GLES : TKOpenGlesTest
48
+ OPENGLES : TKOpenGlesTest
49
+ D3DHOST : TKD3DHostTest
50
+ XSDRAW : TKXSDRAW
51
+ XDEDRAW : TKXDEDRAW
52
+ TOBJ : TKTObjDRAW
53
+ DFBROWSER : TKDFBrowser
54
+ QAcommands : TKQADraw
55
+ VIS : TKIVtkDraw
56
+ INSPECTOR : TKToolsDraw
57
+ DE : TKXSDRAWDE
58
+ STEP : TKXSDRAWSTEP
59
+ IGES : TKXSDRAWIGES
60
+ GLTF : TKXSDRAWGLTF
61
+ OBJ : TKXSDRAWOBJ
62
+ PLY : TKXSDRAWPLY
63
+ STL : TKXSDRAWSTL
64
+ VRML : TKXSDRAWVRML