occt-gltf-addon-linux-x64 0.1.1 → 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,2 @@
1
+ srcinc:::IGES
2
+ srcinc:::STEP
@@ -0,0 +1,65 @@
1
+
2
+ ! Resource file for data exchange ...
3
+ !
4
+ ! For meaning of parameters refer to the end of the file
5
+
6
+ ! ==============================================================================
7
+ !
8
+
9
+ ToIGES.exec.op: DirectFaces
10
+
11
+ FromIGES.exec.op : FixShape
12
+
13
+ FromIGES.FixShape.Tolerance3d : &Runtime.Tolerance
14
+ FromIGES.FixShape.MaxTolerance3d : &Runtime.MaxTolerance
15
+ FromIGES.FixShape.MinTolerance3d : 1.e-7
16
+ FromIGES.FixShape.FixFreeShellMode : -1
17
+ FromIGES.FixShape.FixFreeFaceMode : -1
18
+ FromIGES.FixShape.FixFreeWireMode : -1
19
+ FromIGES.FixShape.FixSameParameterMode : -1
20
+
21
+ FromIGES.FixShape.FixSolidMode : -1
22
+ FromSTEP.FixShape.FixShellOrientationMode : -1
23
+ FromIGES.FixShape.CreateOpenSolidMode : 1
24
+
25
+ FromIGES.FixShape.FixShellMode : -1
26
+ FromSTEP.FixShape.FixFaceOrientationMode : -1
27
+
28
+ FromIGES.FixShape.FixFaceMode : -1
29
+ FromIGES.FixShape.FixWireMode : -1
30
+ FromIGES.FixShape.FixOrientationMode : -1
31
+ FromIGES.FixShape.FixAddNaturalBoundMode : -1
32
+ FromIGES.FixShape.FixMissingSeamMode : -1
33
+ FromIGES.FixShape.FixSmallAreaWireMode : -1
34
+ FromIGES.FixShape.RemoveSmallAreaFaceMode : -1
35
+ FromIGES.FixShape.FixIntersectingWiresMode : -1
36
+ FromIGES.FixShape.FixLoopWiresMode : -1
37
+ FromIGES.FixShape.FixSplitFaceMode : -1
38
+ FromIGES.FixShape.AutoCorrectPrecisionMode : 1
39
+ FromIGES.FixShape.ModifyTopologyMode : 0
40
+ FromIGES.FixShape.ModifyGeometryMode : 1
41
+ FromIGES.FixShape.ClosedWireMode : 1
42
+ FromIGES.FixShape.PreferencePCurveMode : 1
43
+ FromIGES.FixShape.FixReorderMode : -1
44
+ FromIGES.FixShape.FixSmallMode : -1
45
+ FromIGES.FixShape.FixConnectedMode : -1
46
+ FromIGES.FixShape.FixEdgeCurvesMode : -1
47
+ FromIGES.FixShape.FixDegeneratedMode : -1
48
+ FromIGES.FixShape.FixLackingMode : -1
49
+ FromIGES.FixShape.FixSelfIntersectionMode : -1
50
+ FromIGES.FixShape.RemoveLoopMode : -1
51
+ FromIGES.FixShape.FixReversed2dMode : -1
52
+ FromIGES.FixShape.FixRemovePCurveMode : -1
53
+ FromIGES.FixShape.FixRemoveCurve3dMode : -1
54
+ FromIGES.FixShape.FixAddPCurveMode : -1
55
+ FromIGES.FixShape.FixAddCurve3dMode : -1
56
+ FromIGES.FixShape.FixSeamMode : -1
57
+ FromIGES.FixShape.FixShiftedMode : -1
58
+ FromIGES.FixShape.FixEdgeSameParameterMode : 0
59
+ FromIGES.FixShape.FixNotchedEdgesMode : -1
60
+ FromIGES.FixShape.FixSelfIntersectingEdgeMode : -1
61
+ FromIGES.FixShape.FixIntersectingEdgesMode : -1
62
+ FromIGES.FixShape.FixNonAdjacentIntersectingEdgesMode : -1
63
+
64
+ FromIGES.FixShape.FixVertexPositionMode : 0
65
+ FromIGES.FixShape.FixVertexToleranceMode : -1
@@ -0,0 +1,68 @@
1
+
2
+ ! Resource file for data exchange ...
3
+ !
4
+ ! For meaning of parameters refer to the end of the file
5
+
6
+ ! ==============================================================================
7
+ !
8
+
9
+ ToSTEP.exec.op : SplitCommonVertex,DirectFaces
10
+
11
+ FromSTEP.exec.op : FixShape
12
+
13
+ FromSTEP.FixShape.Tolerance3d : &Runtime.Tolerance
14
+ FromSTEP.FixShape.MaxTolerance3d : &Runtime.MaxTolerance
15
+ FromSTEP.FixShape.MinTolerance3d : 1.e-7
16
+ FromSTEP.FixShape.FixFreeShellMode : -1
17
+ FromSTEP.FixShape.FixFreeFaceMode : -1
18
+ FromSTEP.FixShape.FixFreeWireMode : -1
19
+ FromSTEP.FixShape.FixSameParameterMode : -1
20
+
21
+ FromSTEP.FixShape.FixSolidMode : -1
22
+ FromSTEP.FixShape.FixShellOrientationMode : -1
23
+ FromSTEP.FixShape.CreateOpenSolidMode : 0
24
+
25
+ FromSTEP.FixShape.FixShellMode : -1
26
+ FromSTEP.FixShape.FixFaceOrientationMode : -1
27
+
28
+ FromSTEP.FixShape.FixFaceMode : -1
29
+ FromSTEP.FixShape.FixWireMode : -1
30
+ FromSTEP.FixShape.FixOrientationMode : -1
31
+ FromSTEP.FixShape.FixAddNaturalBoundMode : -1
32
+ FromSTEP.FixShape.FixMissingSeamMode : -1
33
+ FromSTEP.FixShape.FixSmallAreaWireMode : -1
34
+ FromSTEP.FixShape.RemoveSmallAreaFaceMode : -1
35
+ FromSTEP.FixShape.FixIntersectingWiresMode : -1
36
+ FromSTEP.FixShape.FixLoopWiresMode : -1
37
+ FromSTEP.FixShape.FixSplitFaceMode : -1
38
+ FromSTEP.FixShape.AutoCorrectPrecisionMode : 1
39
+ FromSTEP.FixShape.ModifyTopologyMode : 0
40
+ FromSTEP.FixShape.ModifyGeometryMode : 1
41
+ FromSTEP.FixShape.ClosedWireMode : 1
42
+ FromSTEP.FixShape.PreferencePCurveMode : 1
43
+ FromSTEP.FixShape.FixReorderMode : -1
44
+ FromSTEP.FixShape.FixSmallMode : -1
45
+ FromSTEP.FixShape.FixConnectedMode : -1
46
+ FromSTEP.FixShape.FixEdgeCurvesMode : -1
47
+ FromSTEP.FixShape.FixDegeneratedMode : -1
48
+ FromSTEP.FixShape.FixLackingMode : -1
49
+ FromSTEP.FixShape.FixSelfIntersectionMode : -1
50
+ FromSTEP.FixShape.RemoveLoopMode : -1
51
+ FromSTEP.FixShape.FixReversed2dMode : -1
52
+ FromSTEP.FixShape.FixRemovePCurveMode : -1
53
+ FromSTEP.FixShape.FixRemoveCurve3dMode : -1
54
+ FromSTEP.FixShape.FixAddPCurveMode : -1
55
+ FromSTEP.FixShape.FixAddCurve3dMode : -1
56
+ FromSTEP.FixShape.FixSeamMode : -1
57
+ FromSTEP.FixShape.FixShiftedMode : -1
58
+ FromSTEP.FixShape.FixEdgeSameParameterMode : 0
59
+ FromSTEP.FixShape.FixNotchedEdgesMode : -1
60
+ FromSTEP.FixShape.FixTailMode : 0
61
+ FromSTEP.FixShape.MaxTailAngle : 0
62
+ FromSTEP.FixShape.MaxTailWidth : -1
63
+ FromSTEP.FixShape.FixSelfIntersectingEdgeMode : -1
64
+ FromSTEP.FixShape.FixIntersectingEdgesMode : -1
65
+ FromSTEP.FixShape.FixNonAdjacentIntersectingEdgesMode : -1
66
+
67
+ FromSTEP.FixShape.FixVertexPositionMode : 0
68
+ FromSTEP.FixShape.FixVertexToleranceMode : -1
@@ -0,0 +1,11 @@
1
+ srcinc:::XmlOcaf.xsd
2
+ srcinc:::XmlOcaf_SmallTypes.xsd
3
+ srcinc:::XmlOcaf_TDataStd.xsd
4
+ srcinc:::XmlOcaf_TDataStd_Name.xsd
5
+ srcinc:::XmlOcaf_TDF.xsd
6
+ srcinc:::XmlOcaf_TDocStd.xsd
7
+ srcinc:::XmlOcaf_TFunction.xsd
8
+ srcinc:::XmlOcaf_TNaming.xsd
9
+ srcinc:::XmlOcaf_TNaming_NamedShape.xsd
10
+ srcinc:::XmlOcaf_TPrsStd.xsd
11
+ srcinc:::XmlXcaf.xsd
@@ -0,0 +1,131 @@
1
+ <schema targetNamespace="http://www.opencascade.org/OCAF/XML"
2
+ xmlns="http://www.w3.org/2001/XMLSchema"
3
+ xmlns:ocaf="http://www.opencascade.org/OCAF/XML"
4
+ elementFormDefault="qualified">
5
+ <include schemaLocation="XmlOcaf_SmallTypes.xsd"/>
6
+ <include schemaLocation="XmlOcaf_TDataStd.xsd"/>
7
+ <include schemaLocation="XmlOcaf_TDF.xsd"/>
8
+ <include schemaLocation="XmlOcaf_TDocStd.xsd"/>
9
+ <include schemaLocation="XmlOcaf_TFunction.xsd"/>
10
+ <include schemaLocation="XmlOcaf_TNaming.xsd"/>
11
+ <include schemaLocation="XmlOcaf_TPrsStd.xsd"/>
12
+
13
+ <annotation>
14
+ <documentation xml:lang="en">
15
+ Copyright (c) 2001-2014 OPEN CASCADE SAS
16
+
17
+ This file is part of Open CASCADE Technology software library.
18
+
19
+ This library is free software; you can redistribute it and/or modify it under
20
+ the terms of the GNU Lesser General Public License version 2.1 as published
21
+ by the Free Software Foundation, with special exception defined in the file
22
+ OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
23
+ distribution for complete text of the license and disclaimer of any warranty.
24
+
25
+ Alternatively, this file may be used under the terms of Open CASCADE
26
+ commercial license or contractual agreement.
27
+
28
+ Open Cascade Application Framework: Definition of XmlOcaf Persistence format.
29
+ This Schema definition resides at: $(CASROOT)/src/XmlOcafResource/XmlOcaf.xsd
30
+ </documentation>
31
+ </annotation>
32
+
33
+ <complexType name="LabelType">
34
+ <sequence>
35
+ <choice minOccurs="0" maxOccurs="unbounded">
36
+ <element ref="ocaf:AbstractStringAtt"/>
37
+ <element ref="ocaf:AbstractIntegerAtt"/>
38
+ <element ref="ocaf:AbstractRealAtt"/>
39
+ <element ref="ocaf:AbstractListIntegerAtt"/>
40
+ <element ref="ocaf:AbstractListRealAtt"/>
41
+ <element ref="ocaf:AbstractAttribute"/>
42
+ <element ref="ocaf:AbstractXPathLabel"/>
43
+ <element ref="ocaf:AbstractList3RealAtt"/>
44
+ </choice>
45
+ <element name="label" type="ocaf:LabelType" minOccurs="0" maxOccurs="unbounded">
46
+ <!-- This type of uniqueness does not allow recursive structures
47
+ <unique name="LabelUniqueness">
48
+ <selector xpath="ocaf:label"/>
49
+ <field xpath="@tag"/>
50
+ </unique> -->
51
+ </element>
52
+ </sequence>
53
+ <attribute name="tag" type="positiveInteger" use="required"/>
54
+ </complexType>
55
+
56
+ <!-- Declaration of document element +++++++++++++++++++++++++++ -->
57
+ <element name="document">
58
+ <complexType>
59
+ <sequence>
60
+
61
+ <!-- Declaration of element 'info' +++++++++++++++++++++++++++++ -->
62
+ <element name="info">
63
+ <complexType>
64
+ <sequence>
65
+ <element name="iitem" type="string" minOccurs="0" maxOccurs="unbounded"/>
66
+ </sequence>
67
+ <attribute name="date" type="date" use="required"/>
68
+ <attribute name="schemav" type="nonNegativeInteger" use="required"/>
69
+ <attribute name="DocVersion" type="nonNegativeInteger" use="required"/>
70
+ <attribute name="objnb" type="nonNegativeInteger" use="required"/>
71
+ </complexType>
72
+ </element> <!-- END 'info' -->
73
+
74
+ <!-- Declaration of element 'comments' ++++++++++++++++++++++++++ -->
75
+ <element name="comments">
76
+ <complexType>
77
+ <sequence>
78
+ <element name="citem" type="string" minOccurs="0" maxOccurs="unbounded"/>
79
+ </sequence>
80
+ </complexType>
81
+ </element> <!-- END 'comments' -->
82
+
83
+ <!-- Declaration of element 'label' +++++++++++++++++++++++++++++ -->
84
+ <element name="label">
85
+ <!-- Local type redefinition from ocaf:LabelType by restriction -->
86
+ <complexType>
87
+ <complexContent>
88
+ <restriction base="ocaf:LabelType">
89
+ <sequence>
90
+ <choice minOccurs="0" maxOccurs="unbounded">
91
+ <element ref="ocaf:AbstractStringAtt"/>
92
+ <element ref="ocaf:AbstractIntegerAtt"/>
93
+ <element ref="ocaf:AbstractRealAtt"/>
94
+ <element ref="ocaf:AbstractListIntegerAtt"/>
95
+ <element ref="ocaf:AbstractListRealAtt"/>
96
+ <element ref="ocaf:AbstractAttribute"/>
97
+ <element ref="ocaf:AbstractXPathLabel"/>
98
+ <element ref="ocaf:AbstractList3RealAtt"/>
99
+ </choice>
100
+ <element name="label" type="ocaf:LabelType" minOccurs="0" maxOccurs="unbounded">
101
+ <unique name="Label1Uniqueness">
102
+ <selector xpath="ocaf:label"/>
103
+ <field xpath="@tag"/> <!-- label tags -->
104
+ </unique>
105
+ </element>
106
+ </sequence>
107
+ <!-- Difference from ocaf:LabelType is FIXEDNESS of tag attribute -->
108
+ <attribute name="tag" type="nonNegativeInteger" fixed="0"/>
109
+ </restriction>
110
+ </complexContent>
111
+ </complexType>
112
+ <!-- Uniqueness of tags in sub-labels -->
113
+ <unique name="Label0Uniqueness">
114
+ <selector xpath="ocaf:label"/>
115
+ <field xpath="@tag"/>
116
+ </unique>
117
+ <!-- Uniqueness of 'id' values of shareable objects -->
118
+ <unique name="ShareableIdUniqueness">
119
+ <selector xpath=".//ocaf:*"/>
120
+ <field xpath="@id"/>
121
+ </unique>
122
+ </element> <!-- END 'label 0' -->
123
+
124
+ <!-- Declaration of element 'shapes' +++++++++++++++++++++++++++ -->
125
+ <element name="shapes" type="string" minOccurs="0"/>
126
+
127
+ </sequence>
128
+ <attribute name="format" type="string" use="required"/>
129
+ </complexType>
130
+ </element> <!-- END 'document' -->
131
+ </schema>
@@ -0,0 +1,217 @@
1
+ <schema targetNamespace="http://www.opencascade.org/OCAF/XML"
2
+ xmlns="http://www.w3.org/2001/XMLSchema"
3
+ xmlns:ocaf="http://www.opencascade.org/OCAF/XML"
4
+ elementFormDefault="qualified">
5
+
6
+ <annotation>
7
+ <documentation xml:lang="en">
8
+ Copyright (c) 2001-2014 OPEN CASCADE SAS
9
+
10
+ This file is part of Open CASCADE Technology software library.
11
+
12
+ This library is free software; you can redistribute it and/or modify it under
13
+ the terms of the GNU Lesser General Public License version 2.1 as published
14
+ by the Free Software Foundation, with special exception defined in the file
15
+ OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
16
+ distribution for complete text of the license and disclaimer of any warranty.
17
+
18
+ Alternatively, this file may be used under the terms of Open CASCADE
19
+ commercial license or contractual agreement.
20
+
21
+ Open Cascade Application Framework: Definition of basic types
22
+ This file is included in XmlOcaf.xsd
23
+ URL: $(CASROOT)/src/XmlOcafResource/XmlOcaf_SmallTypes.xsd
24
+ </documentation>
25
+ </annotation>
26
+
27
+ <!-- DEFINITIONS OF SIMPLE BASIC TYPES -->
28
+
29
+ <simpleType name="ListOfInteger">
30
+ <list itemType="int"/>
31
+ </simpleType>
32
+
33
+ <simpleType name="ListOfReal">
34
+ <list itemType="double"/>
35
+ </simpleType>
36
+
37
+ <simpleType name="ListOf3Real">
38
+ <restriction base="ocaf:ListOfReal">
39
+ <length value="3"/>
40
+ </restriction>
41
+ </simpleType>
42
+
43
+ <simpleType name="GuidType">
44
+ <restriction base="string">
45
+ <length value="36"/>
46
+ <pattern value="[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"/>
47
+ </restriction>
48
+ </simpleType>
49
+
50
+ <simpleType name="XPathLabel">
51
+ <restriction base="string">
52
+ <pattern value='/document/label(/label\[@tag=\"[1-9][0-9]*\"\])*'/>
53
+ </restriction>
54
+ </simpleType>
55
+
56
+ <!-- DEFINITIONS OF BASIC TYPES FOR OCAF ATTRIBUTES -->
57
+
58
+ <complexType name="AbsStringAttributeType">
59
+ <simpleContent>
60
+ <extension base="string">
61
+ <attribute name="id" type="positiveInteger" use="required"/>
62
+ </extension>
63
+ </simpleContent>
64
+ </complexType>
65
+
66
+ <complexType name="AbsIntegerAttributeType">
67
+ <simpleContent>
68
+ <extension base="int">
69
+ <attribute name="id" type="positiveInteger" use="required"/>
70
+ </extension>
71
+ </simpleContent>
72
+ </complexType>
73
+
74
+ <complexType name="AbsRealAttributeType">
75
+ <simpleContent>
76
+ <extension base="double">
77
+ <attribute name="id" type="positiveInteger" use="required"/>
78
+ </extension>
79
+ </simpleContent>
80
+ </complexType>
81
+
82
+ <complexType name="AbsListIntegerAttributeType">
83
+ <simpleContent>
84
+ <extension base="ocaf:ListOfInteger">
85
+ <attribute name="id" type="positiveInteger" use="required"/>
86
+ </extension>
87
+ </simpleContent>
88
+ </complexType>
89
+
90
+ <complexType name="AbsListRealAttributeType">
91
+ <simpleContent>
92
+ <extension base="ocaf:ListOfReal">
93
+ <attribute name="id" type="positiveInteger" use="required"/>
94
+ </extension>
95
+ </simpleContent>
96
+ </complexType>
97
+
98
+ <complexType name="AbsXPathLabelType">
99
+ <simpleContent>
100
+ <extension base="ocaf:XPathLabel">
101
+ <attribute name="id" type="positiveInteger" use="required"/>
102
+ </extension>
103
+ </simpleContent>
104
+ </complexType>
105
+
106
+ <complexType name="AbsList3RealAttributeType">
107
+ <simpleContent>
108
+ <extension base="ocaf:ListOf3Real">
109
+ <attribute name="id" type="positiveInteger" use="required"/>
110
+ </extension>
111
+ </simpleContent>
112
+ </complexType>
113
+
114
+ <!-- DECLARATIONS OF ABSTRACT XML ELEMENTS FOR OCAF ATTRIBUTES -->
115
+
116
+ <element name="AbstractStringAtt" type="ocaf:AbsStringAttributeType" abstract="true">
117
+ <annotation>
118
+ <documentation>
119
+ Abstract type corresponding to TDF_Attribute with String content
120
+ </documentation>
121
+ </annotation>
122
+ </element>
123
+
124
+ <element name="AbstractIntegerAtt" type="ocaf:AbsIntegerAttributeType" abstract="true">
125
+ <annotation>
126
+ <documentation>
127
+ Abstract type corresponding to TDF_Attribute with Integer content
128
+ </documentation>
129
+ </annotation>
130
+ </element>
131
+
132
+ <element name="AbstractRealAtt" type="ocaf:AbsRealAttributeType" abstract="true">
133
+ <annotation>
134
+ <documentation>
135
+ Abstract type corresponding to TDF_Attribute with Real content
136
+ </documentation>
137
+ </annotation>
138
+ </element>
139
+
140
+ <element name="AbstractListIntegerAtt"
141
+ type="ocaf:AbsListIntegerAttributeType" abstract="true">
142
+ <annotation>
143
+ <documentation>
144
+ Abstract type corresponding to TDF_Attribute with List-Of-Integer content
145
+ </documentation>
146
+ </annotation>
147
+ </element>
148
+
149
+ <element name="AbstractListRealAtt"
150
+ type="ocaf:AbsListRealAttributeType" abstract="true">
151
+ <annotation>
152
+ <documentation>
153
+ Abstract type corresponding to TDF_Attribute with List-Of-Real content
154
+ </documentation>
155
+ </annotation>
156
+ </element>
157
+
158
+ <element name="AbstractXPathLabel" type="ocaf:AbsXPathLabelType" abstract="true">
159
+ <annotation>
160
+ <documentation>
161
+ Abstract type representing XPath reference to OCAF label
162
+ </documentation>
163
+ </annotation>
164
+ </element>
165
+
166
+ <element name="AbstractList3RealAtt"
167
+ type="ocaf:AbsList3RealAttributeType" abstract="true">
168
+ <annotation>
169
+ <documentation>
170
+ Abstract type corresponding to TDF_Attribute with List-Of-3-Real content
171
+ </documentation>
172
+ </annotation>
173
+ </element>
174
+
175
+ <!-- DECLARATION OF ABSTRACT XML ELEMENT FOR OCAF ATTRIBUTES WITH NO SIMPLE CONTENT -->
176
+
177
+ <complexType name="AbstractAttributeType">
178
+ <complexContent>
179
+ <restriction base="anyType">
180
+ <attribute name="id" type="positiveInteger" use="required"/>
181
+ </restriction>
182
+ </complexContent>
183
+ </complexType>
184
+
185
+ <element name="AbstractAttribute" type="ocaf:AbstractAttributeType" abstract="true">
186
+ <annotation>
187
+ <documentation>
188
+ Abstract type corresponding to TDF_Attribute (the ancestor of all OCAF Attributes)
189
+ </documentation>
190
+ </annotation>
191
+ </element>
192
+
193
+ <!-- ELEMENT **LOCATION** -->
194
+
195
+ <complexType name="Location">
196
+ <sequence>
197
+ <element name="datum" minOccurs="0">
198
+ <complexType>
199
+ <attribute name="id" type="positiveInteger" use="required"/>
200
+ <attribute name="trsf" use="required">
201
+ <simpleType>
202
+ <restriction base="ocaf:ListOfReal">
203
+ <length value="14"/>
204
+ </restriction>
205
+ </simpleType>
206
+ </attribute>
207
+ </complexType>
208
+ </element>
209
+ <element name="location" type="ocaf:Location" minOccurs="0"/>
210
+ </sequence>
211
+ <attribute name="power" type="positiveInteger" use="required"/>
212
+ <attribute name="datum" type="positiveInteger" use="required"/>
213
+ </complexType>
214
+
215
+ <element name="location" type="ocaf:Location"/>
216
+
217
+ </schema>
@@ -0,0 +1,33 @@
1
+ <schema targetNamespace="http://www.opencascade.org/OCAF/XML"
2
+ xmlns="http://www.w3.org/2001/XMLSchema"
3
+ xmlns:ocaf="http://www.opencascade.org/OCAF/XML"
4
+ elementFormDefault="qualified">
5
+
6
+ <annotation>
7
+ <documentation xml:lang="en">
8
+ Copyright (c) 2001-2014 OPEN CASCADE SAS
9
+
10
+ This file is part of Open CASCADE Technology software library.
11
+
12
+ This library is free software; you can redistribute it and/or modify it under
13
+ the terms of the GNU Lesser General Public License version 2.1 as published
14
+ by the Free Software Foundation, with special exception defined in the file
15
+ OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
16
+ distribution for complete text of the license and disclaimer of any warranty.
17
+
18
+ Alternatively, this file may be used under the terms of Open CASCADE
19
+ commercial license or contractual agreement.
20
+
21
+ Open Cascade Application Framework: Definition of attributes from TDF
22
+ This file is included in XmlOcaf.xsd
23
+ URL: $(CASROOT)/src/XmlOcafResource/XmlOcaf_TDF.xsd
24
+ </documentation>
25
+ </annotation>
26
+
27
+ <element name="TDF_TagSource" type="ocaf:AbsIntegerAttributeType"
28
+ substitutionGroup="ocaf:AbstractIntegerAtt"/>
29
+
30
+ <element name="TDF_Reference" type="ocaf:AbsXPathLabelType"
31
+ substitutionGroup="ocaf:AbstractXPathLabel"/>
32
+
33
+ </schema>