@coloopx/colocad 0.0.0-stage → 0.1.0-alpha.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 (194) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE.md +5 -0
  3. package/README.md +131 -2
  4. package/README.zh-CN.md +100 -0
  5. package/bin/colocad.mjs +32 -0
  6. package/examples/manifold.json +11 -0
  7. package/examples/sensor-rail.json +9 -0
  8. package/kernel/LICENSE +21 -0
  9. package/kernel/dist/artifacts.d.ts +3 -0
  10. package/kernel/dist/artifacts.js +19 -0
  11. package/kernel/dist/assets.d.ts +3 -0
  12. package/kernel/dist/assets.js +11 -0
  13. package/kernel/dist/binary.d.ts +2 -0
  14. package/kernel/dist/binary.js +14 -0
  15. package/kernel/dist/client.d.ts +22 -0
  16. package/kernel/dist/client.js +99 -0
  17. package/kernel/dist/files.d.ts +19 -0
  18. package/kernel/dist/files.js +103 -0
  19. package/kernel/dist/generated.d.ts +707 -0
  20. package/kernel/dist/generated.js +1 -0
  21. package/kernel/dist/helpers.d.ts +9 -0
  22. package/kernel/dist/helpers.js +23 -0
  23. package/kernel/dist/index.d.ts +8 -0
  24. package/kernel/dist/index.js +6 -0
  25. package/kernel/dist/preview-cache.d.ts +19 -0
  26. package/kernel/dist/preview-cache.js +29 -0
  27. package/kernel/dist/process.d.ts +12 -0
  28. package/kernel/dist/process.js +41 -0
  29. package/kernel/dist/tools.d.ts +67 -0
  30. package/kernel/dist/tools.js +20 -0
  31. package/kernel/dist/types.d.ts +26 -0
  32. package/kernel/dist/types.js +1 -0
  33. package/kernel/licenses/adler2-2.0.1-LICENSE-0BSD +12 -0
  34. package/kernel/licenses/adler2-2.0.1-LICENSE-APACHE +201 -0
  35. package/kernel/licenses/adler2-2.0.1-LICENSE-MIT +23 -0
  36. package/kernel/licenses/allocator-api2-0.2.21-LICENSE-APACHE +176 -0
  37. package/kernel/licenses/allocator-api2-0.2.21-LICENSE-MIT +23 -0
  38. package/kernel/licenses/autocfg-1.5.1-LICENSE-APACHE +201 -0
  39. package/kernel/licenses/autocfg-1.5.1-LICENSE-MIT +25 -0
  40. package/kernel/licenses/bitflags-1.3.2-LICENSE-APACHE +201 -0
  41. package/kernel/licenses/bitflags-1.3.2-LICENSE-MIT +25 -0
  42. package/kernel/licenses/block-buffer-0.10.4-LICENSE-APACHE +201 -0
  43. package/kernel/licenses/block-buffer-0.10.4-LICENSE-MIT +25 -0
  44. package/kernel/licenses/cfg-if-1.0.5-LICENSE-APACHE +201 -0
  45. package/kernel/licenses/cfg-if-1.0.5-LICENSE-MIT +25 -0
  46. package/kernel/licenses/cpufeatures-0.2.17-LICENSE-APACHE +201 -0
  47. package/kernel/licenses/cpufeatures-0.2.17-LICENSE-MIT +25 -0
  48. package/kernel/licenses/crc32fast-1.5.4-LICENSE-APACHE +202 -0
  49. package/kernel/licenses/crc32fast-1.5.4-LICENSE-MIT +21 -0
  50. package/kernel/licenses/crossbeam-deque-0.8.8-LICENSE-APACHE +201 -0
  51. package/kernel/licenses/crossbeam-deque-0.8.8-LICENSE-MIT +27 -0
  52. package/kernel/licenses/crossbeam-epoch-0.9.21-LICENSE-APACHE +201 -0
  53. package/kernel/licenses/crossbeam-epoch-0.9.21-LICENSE-MIT +27 -0
  54. package/kernel/licenses/crossbeam-utils-0.8.23-LICENSE-APACHE +201 -0
  55. package/kernel/licenses/crossbeam-utils-0.8.23-LICENSE-MIT +27 -0
  56. package/kernel/licenses/crypto-common-0.1.7-LICENSE-APACHE +201 -0
  57. package/kernel/licenses/crypto-common-0.1.7-LICENSE-MIT +25 -0
  58. package/kernel/licenses/dependencies.json +618 -0
  59. package/kernel/licenses/digest-0.10.7-LICENSE-APACHE +201 -0
  60. package/kernel/licenses/digest-0.10.7-LICENSE-MIT +25 -0
  61. package/kernel/licenses/dyn-clone-1.0.20-LICENSE-APACHE +176 -0
  62. package/kernel/licenses/dyn-clone-1.0.20-LICENSE-MIT +23 -0
  63. package/kernel/licenses/either-1.19.0-LICENSE-APACHE +201 -0
  64. package/kernel/licenses/either-1.19.0-LICENSE-MIT +25 -0
  65. package/kernel/licenses/equivalent-1.0.3-LICENSE-APACHE +201 -0
  66. package/kernel/licenses/equivalent-1.0.3-LICENSE-MIT +25 -0
  67. package/kernel/licenses/fdeflate-0.3.7-LICENSE-APACHE +177 -0
  68. package/kernel/licenses/fdeflate-0.3.7-LICENSE-MIT +25 -0
  69. package/kernel/licenses/flate2-1.1.10-LICENSE-APACHE +201 -0
  70. package/kernel/licenses/flate2-1.1.10-LICENSE-MIT +25 -0
  71. package/kernel/licenses/foldhash-0.2.0-LICENSE +19 -0
  72. package/kernel/licenses/generic-array-0.14.7-LICENSE +21 -0
  73. package/kernel/licenses/hashbrown-0.16.1-LICENSE-APACHE +201 -0
  74. package/kernel/licenses/hashbrown-0.16.1-LICENSE-MIT +25 -0
  75. package/kernel/licenses/itoa-1.0.18-LICENSE-APACHE +176 -0
  76. package/kernel/licenses/itoa-1.0.18-LICENSE-MIT +23 -0
  77. package/kernel/licenses/libc-0.2.191-LICENSE-APACHE +176 -0
  78. package/kernel/licenses/libc-0.2.191-LICENSE-MIT +25 -0
  79. package/kernel/licenses/memchr-2.8.3-COPYING +3 -0
  80. package/kernel/licenses/memchr-2.8.3-LICENSE-MIT +21 -0
  81. package/kernel/licenses/miniz_oxide-0.8.9-LICENSE +25 -0
  82. package/kernel/licenses/miniz_oxide-0.8.9-LICENSE-APACHE.md +177 -0
  83. package/kernel/licenses/miniz_oxide-0.8.9-LICENSE-MIT.md +24 -0
  84. package/kernel/licenses/miniz_oxide-0.8.9-LICENSE-ZLIB.md +14 -0
  85. package/kernel/licenses/miniz_oxide-0.9.1-LICENSE +25 -0
  86. package/kernel/licenses/miniz_oxide-0.9.1-LICENSE-APACHE.md +177 -0
  87. package/kernel/licenses/miniz_oxide-0.9.1-LICENSE-MIT.md +24 -0
  88. package/kernel/licenses/miniz_oxide-0.9.1-LICENSE-ZLIB.md +14 -0
  89. package/kernel/licenses/num-traits-0.2.19-LICENSE-APACHE +201 -0
  90. package/kernel/licenses/num-traits-0.2.19-LICENSE-MIT +25 -0
  91. package/kernel/licenses/png-0.17.16-LICENSE-APACHE +201 -0
  92. package/kernel/licenses/png-0.17.16-LICENSE-MIT +25 -0
  93. package/kernel/licenses/proc-macro2-1.0.107-LICENSE-APACHE +176 -0
  94. package/kernel/licenses/proc-macro2-1.0.107-LICENSE-MIT +23 -0
  95. package/kernel/licenses/quote-1.0.47-LICENSE-APACHE +176 -0
  96. package/kernel/licenses/quote-1.0.47-LICENSE-MIT +23 -0
  97. package/kernel/licenses/rayon-1.12.0-LICENSE-APACHE +201 -0
  98. package/kernel/licenses/rayon-1.12.0-LICENSE-MIT +25 -0
  99. package/kernel/licenses/rayon-core-1.13.0-LICENSE-APACHE +201 -0
  100. package/kernel/licenses/rayon-core-1.13.0-LICENSE-MIT +25 -0
  101. package/kernel/licenses/ref-cast-1.0.27-LICENSE-APACHE +176 -0
  102. package/kernel/licenses/ref-cast-1.0.27-LICENSE-MIT +23 -0
  103. package/kernel/licenses/ref-cast-impl-1.0.27-LICENSE-APACHE +176 -0
  104. package/kernel/licenses/ref-cast-impl-1.0.27-LICENSE-MIT +23 -0
  105. package/kernel/licenses/robust-1.2.0-LICENSE-APACHE +201 -0
  106. package/kernel/licenses/robust-1.2.0-LICENSE-MIT +26 -0
  107. package/kernel/licenses/schemars-1.2.3-LICENSE +21 -0
  108. package/kernel/licenses/schemars_derive-1.2.3-LICENSE +21 -0
  109. package/kernel/licenses/serde-1.0.229-LICENSE-APACHE +176 -0
  110. package/kernel/licenses/serde-1.0.229-LICENSE-MIT +23 -0
  111. package/kernel/licenses/serde_core-1.0.229-LICENSE-APACHE +176 -0
  112. package/kernel/licenses/serde_core-1.0.229-LICENSE-MIT +23 -0
  113. package/kernel/licenses/serde_derive-1.0.229-LICENSE-APACHE +176 -0
  114. package/kernel/licenses/serde_derive-1.0.229-LICENSE-MIT +23 -0
  115. package/kernel/licenses/serde_derive_internals-0.30.0-LICENSE-APACHE +176 -0
  116. package/kernel/licenses/serde_derive_internals-0.30.0-LICENSE-MIT +23 -0
  117. package/kernel/licenses/serde_json-1.0.154-LICENSE-APACHE +176 -0
  118. package/kernel/licenses/serde_json-1.0.154-LICENSE-MIT +23 -0
  119. package/kernel/licenses/sha2-0.10.9-LICENSE-APACHE +201 -0
  120. package/kernel/licenses/sha2-0.10.9-LICENSE-MIT +27 -0
  121. package/kernel/licenses/simd-adler32-0.3.10-LICENSE.md +21 -0
  122. package/kernel/licenses/smallvec-1.16.4-LICENSE-APACHE +201 -0
  123. package/kernel/licenses/smallvec-1.16.4-LICENSE-MIT +25 -0
  124. package/kernel/licenses/solidcore-1.0.1-LICENSE +203 -0
  125. package/kernel/licenses/solidcore-1.0.1-NOTICE +30 -0
  126. package/kernel/licenses/solidcore-ATTRIBUTION.md +92 -0
  127. package/kernel/licenses/solidcore-LICENSE +203 -0
  128. package/kernel/licenses/solidcore-NOTICE +30 -0
  129. package/kernel/licenses/solidcore-convert-0.1.0-ATTRIBUTION.md +92 -0
  130. package/kernel/licenses/solidcore-convert-0.1.0-LICENSE +203 -0
  131. package/kernel/licenses/solidcore-convert-0.1.0-NOTICE +30 -0
  132. package/kernel/licenses/solidcore-record-0.1.0-ATTRIBUTION.md +92 -0
  133. package/kernel/licenses/solidcore-record-0.1.0-LICENSE +203 -0
  134. package/kernel/licenses/solidcore-record-0.1.0-NOTICE +30 -0
  135. package/kernel/licenses/solidcore-tess-0.1.0-ATTRIBUTION.md +92 -0
  136. package/kernel/licenses/solidcore-tess-0.1.0-LICENSE +203 -0
  137. package/kernel/licenses/solidcore-tess-0.1.0-NOTICE +30 -0
  138. package/kernel/licenses/spade-2.15.1-LICENSE-APACHE +202 -0
  139. package/kernel/licenses/spade-2.15.1-LICENSE-MIT +25 -0
  140. package/kernel/licenses/step-brep-0.1.0-ATTRIBUTION.md +92 -0
  141. package/kernel/licenses/step-brep-0.1.0-LICENSE +203 -0
  142. package/kernel/licenses/step-brep-0.1.0-NOTICE +30 -0
  143. package/kernel/licenses/step-export-0.1.0-ATTRIBUTION.md +92 -0
  144. package/kernel/licenses/step-export-0.1.0-LICENSE +203 -0
  145. package/kernel/licenses/step-export-0.1.0-NOTICE +30 -0
  146. package/kernel/licenses/step-import-0.1.0-ATTRIBUTION.md +92 -0
  147. package/kernel/licenses/step-import-0.1.0-LICENSE +203 -0
  148. package/kernel/licenses/step-import-0.1.0-NOTICE +30 -0
  149. package/kernel/licenses/syn-3.0.9-LICENSE-APACHE +176 -0
  150. package/kernel/licenses/syn-3.0.9-LICENSE-MIT +23 -0
  151. package/kernel/licenses/thiserror-2.0.21-LICENSE-APACHE +176 -0
  152. package/kernel/licenses/thiserror-2.0.21-LICENSE-MIT +23 -0
  153. package/kernel/licenses/thiserror-impl-2.0.21-LICENSE-APACHE +176 -0
  154. package/kernel/licenses/thiserror-impl-2.0.21-LICENSE-MIT +23 -0
  155. package/kernel/licenses/typenum-1.20.1-LICENSE +1 -0
  156. package/kernel/licenses/typenum-1.20.1-LICENSE-APACHE +201 -0
  157. package/kernel/licenses/typenum-1.20.1-LICENSE-MIT +21 -0
  158. package/kernel/licenses/unicode-ident-1.0.27-LICENSE-APACHE +176 -0
  159. package/kernel/licenses/unicode-ident-1.0.27-LICENSE-MIT +23 -0
  160. package/kernel/licenses/unicode-ident-1.0.27-LICENSE-UNICODE +39 -0
  161. package/kernel/licenses/version_check-0.9.5-LICENSE-APACHE +201 -0
  162. package/kernel/licenses/version_check-0.9.5-LICENSE-MIT +19 -0
  163. package/kernel/licenses/zlib-rs-0.6.8-LICENSE +19 -0
  164. package/kernel/licenses/zmij-1.0.23-LICENSE-MIT +23 -0
  165. package/kernel/native/darwin-arm64/agent-cad +4 -0
  166. package/kernel/native/darwin-arm64/manifest.json +6 -0
  167. package/kernel/native/linux-arm64/agent-cad +4 -0
  168. package/kernel/native/linux-arm64/manifest.json +6 -0
  169. package/kernel/native/linux-x64/agent-cad +4 -0
  170. package/kernel/native/linux-x64/manifest.json +6 -0
  171. package/kernel/release.json +8 -0
  172. package/kernel/schemas/model.schema.json +4080 -0
  173. package/package.json +59 -4
  174. package/scripts/check-release.mjs +24 -0
  175. package/skills/colocad/SKILL.md +17 -0
  176. package/skills/colocad/assets/angle-bracket.json +39 -0
  177. package/skills/colocad/assets/ball.json +16 -0
  178. package/skills/colocad/assets/block.json +18 -0
  179. package/skills/colocad/assets/open-housing.json +35 -0
  180. package/skills/colocad/assets/pin.json +18 -0
  181. package/skills/colocad/assets/plate-grid.json +34 -0
  182. package/skills/colocad/assets/sleeve.json +19 -0
  183. package/skills/colocad/assets/taper.json +20 -0
  184. package/skills/colocad/references/quick-build.md +44 -0
  185. package/skills/colocad/scripts/assembly.mjs +3 -0
  186. package/skills/colocad/scripts/build.mjs +54 -0
  187. package/solidworks/managed/Colocad.SolidWorks.deps.json +23 -0
  188. package/solidworks/managed/Colocad.SolidWorks.dll +0 -0
  189. package/solidworks/managed/Colocad.SolidWorks.runtimeconfig.json +13 -0
  190. package/src/build.mjs +69 -0
  191. package/src/index.d.mts +67 -0
  192. package/src/index.mjs +4 -0
  193. package/src/solidworks.mjs +65 -0
  194. package/src/tree.mjs +199 -0
@@ -0,0 +1,203 @@
1
+ Copyright (c) 2020-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+
3
+ Apache License
4
+ Version 2.0, January 2004
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction,
12
+ and distribution as defined by Sections 1 through 9 of this document.
13
+
14
+ "Licensor" shall mean the copyright owner or entity authorized by
15
+ the copyright owner that is granting the License.
16
+
17
+ "Legal Entity" shall mean the union of the acting entity and all
18
+ other entities that control, are controlled by, or are under common
19
+ control with that entity. For the purposes of this definition,
20
+ "control" means (i) the power, direct or indirect, to cause the
21
+ direction or management of such entity, whether by contract or
22
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
23
+ outstanding shares, or (iii) beneficial ownership of such entity.
24
+
25
+ "You" (or "Your") shall mean an individual or Legal Entity
26
+ exercising permissions granted by this License.
27
+
28
+ "Source" form shall mean the preferred form for making modifications,
29
+ including but not limited to software source code, documentation
30
+ source, and configuration files.
31
+
32
+ "Object" form shall mean any form resulting from mechanical
33
+ transformation or translation of a Source form, including but
34
+ not limited to compiled object code, generated documentation,
35
+ and conversions to other media types.
36
+
37
+ "Work" shall mean the work of authorship, whether in Source or
38
+ Object form, made available under the License, as indicated by a
39
+ copyright notice that is included in or attached to the work
40
+ (an example is provided in the Appendix below).
41
+
42
+ "Derivative Works" shall mean any work, whether in Source or Object
43
+ form, that is based on (or derived from) the Work and for which the
44
+ editorial revisions, annotations, elaborations, or other modifications
45
+ represent, as a whole, an original work of authorship. For the purposes
46
+ of this License, Derivative Works shall not include works that remain
47
+ separable from, or merely link (or bind by name) to the interfaces of,
48
+ the Work and Derivative Works thereof.
49
+
50
+ "Contribution" shall mean any work of authorship, including
51
+ the original version of the Work and any modifications or additions
52
+ to that Work or Derivative Works thereof, that is intentionally
53
+ submitted to Licensor for inclusion in the Work by the copyright owner
54
+ or by an individual or Legal Entity authorized to submit on behalf of
55
+ the copyright owner. For the purposes of this definition, "submitted"
56
+ means any form of electronic, verbal, or written communication sent
57
+ to the Licensor or its representatives, including but not limited to
58
+ communication on electronic mailing lists, source code control systems,
59
+ and issue tracking systems that are managed by, or on behalf of, the
60
+ Licensor for the purpose of discussing and improving the Work, but
61
+ excluding communication that is conspicuously marked or otherwise
62
+ designated in writing by the copyright owner as "Not a Contribution."
63
+
64
+ "Contributor" shall mean Licensor and any individual or Legal Entity
65
+ on behalf of whom a Contribution has been received by Licensor and
66
+ subsequently incorporated within the Work.
67
+
68
+ 2. Grant of Copyright License. Subject to the terms and conditions of
69
+ this License, each Contributor hereby grants to You a perpetual,
70
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
71
+ copyright license to reproduce, prepare Derivative Works of,
72
+ publicly display, publicly perform, sublicense, and distribute the
73
+ Work and such Derivative Works in Source or Object form.
74
+
75
+ 3. Grant of Patent License. Subject to the terms and conditions of
76
+ this License, each Contributor hereby grants to You a perpetual,
77
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
78
+ (except as stated in this section) patent license to make, have made,
79
+ use, offer to sell, sell, import, and otherwise transfer the Work,
80
+ where such license applies only to those patent claims licensable
81
+ by such Contributor that are necessarily infringed by their
82
+ Contribution(s) alone or by combination of their Contribution(s)
83
+ with the Work to which such Contribution(s) was submitted. If You
84
+ institute patent litigation against any entity (including a
85
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
86
+ or a Contribution incorporated within the Work constitutes direct
87
+ or contributory patent infringement, then any patent licenses
88
+ granted to You under this License for that Work shall terminate
89
+ as of the date such litigation is filed.
90
+
91
+ 4. Redistribution. You may reproduce and distribute copies of the
92
+ Work or Derivative Works thereof in any medium, with or without
93
+ modifications, and in Source or Object form, provided that You
94
+ meet the following conditions:
95
+
96
+ (a) You must give any other recipients of the Work or
97
+ Derivative Works a copy of this License; and
98
+
99
+ (b) You must cause any modified files to carry prominent notices
100
+ stating that You changed the files; and
101
+
102
+ (c) You must retain, in the Source form of any Derivative Works
103
+ that You distribute, all copyright, patent, trademark, and
104
+ attribution notices from the Source form of the Work,
105
+ excluding those notices that do not pertain to any part of
106
+ the Derivative Works; and
107
+
108
+ (d) If the Work includes a "NOTICE" text file as part of its
109
+ distribution, then any Derivative Works that You distribute must
110
+ include a readable copy of the attribution notices contained
111
+ within such NOTICE file, excluding those notices that do not
112
+ pertain to any part of the Derivative Works, in at least one
113
+ of the following places: within a NOTICE text file distributed
114
+ as part of the Derivative Works; within the Source form or
115
+ documentation, if provided along with the Derivative Works; or,
116
+ within a display generated by the Derivative Works, if and
117
+ wherever such third-party notices normally appear. The contents
118
+ of the NOTICE file are for informational purposes only and
119
+ do not modify the License. You may add Your own attribution
120
+ notices within Derivative Works that You distribute, alongside
121
+ or as an addendum to the NOTICE text from the Work, provided
122
+ that such additional attribution notices cannot be construed
123
+ as modifying the License.
124
+
125
+ You may add Your own copyright statement to Your modifications and
126
+ may provide additional or different license terms and conditions
127
+ for use, reproduction, or distribution of Your modifications, or
128
+ for any such Derivative Works as a whole, provided Your use,
129
+ reproduction, and distribution of the Work otherwise complies with
130
+ the conditions stated in this License.
131
+
132
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
133
+ any Contribution intentionally submitted for inclusion in the Work
134
+ by You to the Licensor shall be under the terms and conditions of
135
+ this License, without any additional terms or conditions.
136
+ Notwithstanding the above, nothing herein shall supersede or modify
137
+ the terms of any separate license agreement you may have executed
138
+ with Licensor regarding such Contributions.
139
+
140
+ 6. Trademarks. This License does not grant permission to use the trade
141
+ names, trademarks, service marks, or product names of the Licensor,
142
+ except as required for reasonable and customary use in describing the
143
+ origin of the Work and reproducing the content of the NOTICE file.
144
+
145
+ 7. Disclaimer of Warranty. Unless required by applicable law or
146
+ agreed to in writing, Licensor provides the Work (and each
147
+ Contributor provides its Contributions) on an "AS IS" BASIS,
148
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
149
+ implied, including, without limitation, any warranties or conditions
150
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
151
+ PARTICULAR PURPOSE. You are solely responsible for determining the
152
+ appropriateness of using or redistributing the Work and assume any
153
+ risks associated with Your exercise of permissions under this License.
154
+
155
+ 8. Limitation of Liability. In no event and under no legal theory,
156
+ whether in tort (including negligence), contract, or otherwise,
157
+ unless required by applicable law (such as deliberate and grossly
158
+ negligent acts) or agreed to in writing, shall any Contributor be
159
+ liable to You for damages, including any direct, indirect, special,
160
+ incidental, or consequential damages of any character arising as a
161
+ result of this License or out of the use or inability to use the
162
+ Work (including but not limited to damages for loss of goodwill,
163
+ work stoppage, computer failure or malfunction, or any and all
164
+ other commercial damages or losses), even if such Contributor
165
+ has been advised of the possibility of such damages.
166
+
167
+ 9. Accepting Warranty or Additional Liability. While redistributing
168
+ the Work or Derivative Works thereof, You may choose to offer,
169
+ and charge a fee for, acceptance of support, warranty, indemnity,
170
+ or other liability obligations and/or rights consistent with this
171
+ License. However, in accepting such obligations, You may act only
172
+ on Your own behalf and on Your sole responsibility, not on behalf
173
+ of any other Contributor, and only if You agree to indemnify,
174
+ defend, and hold each Contributor harmless for any liability
175
+ incurred by, or claims asserted against, such Contributor by reason
176
+ of your accepting any such warranty or additional liability.
177
+
178
+ END OF TERMS AND CONDITIONS
179
+
180
+ APPENDIX: How to apply the Apache License to your work.
181
+
182
+ To apply the Apache License to your work, attach the following
183
+ boilerplate notice, with the fields enclosed by brackets "{}"
184
+ replaced with your own identifying information. (Don't include
185
+ the brackets!) The text should be enclosed in the appropriate
186
+ comment syntax for the file format. We also recommend that a
187
+ file or class name and description of purpose be included on the
188
+ same "printed page" as the copyright notice for easier
189
+ identification within third-party archives.
190
+
191
+ Copyright (c) 2020-2026 NVIDIA CORPORATION & AFFILIATES
192
+
193
+ Licensed under the Apache License, Version 2.0 (the "License");
194
+ you may not use this file except in compliance with the License.
195
+ You may obtain a copy of the License at
196
+
197
+ http://www.apache.org/licenses/LICENSE-2.0
198
+
199
+ Unless required by applicable law or agreed to in writing, software
200
+ distributed under the License is distributed on an "AS IS" BASIS,
201
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202
+ See the License for the specific language governing permissions and
203
+ limitations under the License.
@@ -0,0 +1,30 @@
1
+ solidcore
2
+ Copyright (c) 2026 The solidcore contributors
3
+
4
+ This product is a Rust port (a derivative work) of the SMLib and SM_API
5
+ components of USD BRep, https://github.com/NVIDIA-Omniverse/usd-brep
6
+ (v1.0.1, commit 3fd5b95), licensed under the Apache License, Version 2.0.
7
+ See ATTRIBUTION.md for exactly which upstream material is used.
8
+
9
+ The upstream work carries the following notice:
10
+
11
+ USD BRep is Copyright (c) 2020-2026, NVIDIA CORPORATION & AFFILIATES. All
12
+ rights reserved. NVIDIA-authored portions of this product are licensed under
13
+ the Apache License, Version 2.0, except where otherwise noted.
14
+
15
+ The upstream SMLib and SM_API source files carry the SPDX header:
16
+
17
+ SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
18
+ SPDX-License-Identifier: Apache-2.0
19
+
20
+ Upstream third-party notices (THIRD_PARTY_NOTICES.md at the pinned commit) cover
21
+ OpenUSD, oneTBB, hwloc, MaterialX, OpenSubdiv, CPython, HACL*, pybind11, the
22
+ UsdSolid proposals, usd-validation-nvidia, the repo bootstrap scripts and optional
23
+ Python GUI tooling. None of those components is part of SMLib or SM_API, and none
24
+ is used, ported or redistributed by solidcore, so no further third-party notices
25
+ apply.
26
+
27
+ Modifications: the C++ sources were translated to Rust and restructured (arena
28
+ topology, typed ids, error values instead of status codes, explicit kernel
29
+ state instead of a global context). Each ported Rust file names the upstream
30
+ file(s) it derives from in its header.
@@ -0,0 +1,92 @@
1
+ # Attribution
2
+
3
+ solidcore is a Rust port of **SMLib**, the NURBS B-rep solid modeling kernel by
4
+ NVIDIA, published as part of USD BRep:
5
+
6
+ - Repository: <https://github.com/NVIDIA-Omniverse/usd-brep>
7
+ - Pinned release: v1.0.1, commit `3fd5b95` (`scripts/upstream-pin.env`; ported from
8
+ `c9c5979` up to the move to v1.0.1)
9
+ - Licence: Apache License, Version 2.0 (see [`LICENSE`](LICENSE), copied verbatim
10
+ from upstream, and [`NOTICE`](NOTICE))
11
+ - Copyright: (c) 2020-2026 NVIDIA CORPORATION & AFFILIATES
12
+
13
+ solidcore is an independent project. It is not affiliated with or endorsed by
14
+ NVIDIA, and "SMLib" and "NVIDIA" are used here only to identify the origin of the
15
+ code, not as branding.
16
+
17
+ ## Upstream material used
18
+
19
+ Only these upstream paths are read, ported or exercised:
20
+
21
+ | Upstream path | Use |
22
+ |--------------------------------|--------------------------------------------------------|
23
+ | `source/SMLib/` | Kernel being ported (geometry, topology, algorithms) |
24
+ | `source/SM_API/` | High-level API being ported; reference for public ops |
25
+ | `tests/SM_API_test/` | Reference tests; source of difftest cases |
26
+ | `tests/prog_test/` | Reference tests; source of difftest cases |
27
+ | `TestFiles/pt_TestFiles/` | Test fixtures |
28
+ | `AGENTS.md`, `.agents/` | Upstream developer documentation (OCCT/USD files excluded) |
29
+ | `LICENSE`, `THIRD_PARTY_NOTICES.md` | Licence text and notices |
30
+
31
+ The C++ reference build (`harness/cpp`) compiles only `source/SMLib` and
32
+ `source/SM_API`, from a local clone that is never committed (`upstream/` is
33
+ gitignored).
34
+
35
+ ## Upstream material not used
36
+
37
+ The following upstream layers are **not** read, ported, built or linked:
38
+
39
+ - OCCT translation: `source/OCCT_BREP_IMPORT`, `source/OCCT_BREP_EXPORT`,
40
+ `TestFiles/occt_breps*`
41
+ - USD / Hydra integration: `source/SM_API_USD`, `source/BREP_SM_USD`,
42
+ `source/BREP_USD_DATA`, `source/HYDRA_USD_BREP`, `source/USD_BREP_UTILS`,
43
+ `source/schema`, `TestFiles/usd_TestFiles`
44
+ - Python bindings and tooling: `source/SmPyLib`, `source/SmPyDevLib`, `tools/`
45
+ - Proposals: `proposals/`
46
+
47
+ No GPL/LGPL code is used anywhere in solidcore.
48
+
49
+ ## Per-file provenance
50
+
51
+ Every ported Rust file begins with a header naming the upstream source file(s) it
52
+ derives from and a table mapping its Rust items to upstream names (see
53
+ [`AGENTS.md`](https://github.com/tangency-labs/solidcore/blob/main/AGENTS.md#file-header)).
54
+
55
+ ## Test corpora
56
+
57
+ These are fetched at run time (never committed) and used only by difftest's
58
+ `--ssi-corpus` correctness report (`crates/difftest/README.md`).
59
+
60
+ ### ssi-corpus
61
+
62
+ - Repository: <https://github.com/jyviko/ssi-corpus> (fetched by
63
+ `scripts/fetch-ssi-corpus.sh` into the gitignored `corpus/ssi/`)
64
+ - Pinned commit: `b04c8a6`
65
+ - Author: Iraklis Kourtis (jyviko), published for solidcore in
66
+ [issue #17](https://github.com/tangency-labs/solidcore/issues/17)
67
+ - Licence: MIT OR Apache-2.0
68
+ - Copyright: (c) 2026 SolidCraft contributors
69
+ - Use: 119 surface/surface intersection cases with exact ground truth. The scorer in
70
+ `crates/difftest/src/ssi/` (`score.rs`, `polyset.rs`, `geom.rs`) is ported from the
71
+ corpus' `scoring/score.py` and `scoring/ssi_geom.py`, and the C++ shim
72
+ `harness/cpp/shim/ssi_corpus.cpp` mirrors its `runner/ssi_runner.cpp`; each of those
73
+ files says so in its header. The truth generators are not ported.
74
+
75
+ ### Yang, Jia & Yan (2023)
76
+
77
+ - Yang, Jia and Yan, "Topology Guaranteed B-Spline Surface/Surface Intersection",
78
+ *ACM Transactions on Graphics* 42(6), Article 211, 2023. Licence: CC-BY.
79
+ - Use: the corpus' 25 `y23_*` cases come from this paper (its published data, or surface
80
+ pairs reconstructed from its figures); each such case cites it in its `source` field.
81
+
82
+ ## Progress site
83
+
84
+ ### d3-force
85
+
86
+ - Packages: `d3-force` 3.0.0 with its dependencies `d3-dispatch` 3.0.1, `d3-quadtree` 3.0.1
87
+ and `d3-timer` 3.0.1, from npm (<https://github.com/d3/d3-force>)
88
+ - Licence: ISC (see [`site/assets/vendor/LICENSE-d3.txt`](site/assets/vendor/LICENSE-d3.txt))
89
+ - Copyright: (c) 2010-2021 Mike Bostock
90
+ - Use: the unmodified `dist/*.min.js` files, concatenated into
91
+ `site/assets/vendor/d3-force.bundle.min.js`, lay out the dependency graph on the
92
+ progress site (`graph.html`). They are served with the site and not loaded from a CDN.
@@ -0,0 +1,203 @@
1
+ Copyright (c) 2020-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2
+
3
+ Apache License
4
+ Version 2.0, January 2004
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction,
12
+ and distribution as defined by Sections 1 through 9 of this document.
13
+
14
+ "Licensor" shall mean the copyright owner or entity authorized by
15
+ the copyright owner that is granting the License.
16
+
17
+ "Legal Entity" shall mean the union of the acting entity and all
18
+ other entities that control, are controlled by, or are under common
19
+ control with that entity. For the purposes of this definition,
20
+ "control" means (i) the power, direct or indirect, to cause the
21
+ direction or management of such entity, whether by contract or
22
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
23
+ outstanding shares, or (iii) beneficial ownership of such entity.
24
+
25
+ "You" (or "Your") shall mean an individual or Legal Entity
26
+ exercising permissions granted by this License.
27
+
28
+ "Source" form shall mean the preferred form for making modifications,
29
+ including but not limited to software source code, documentation
30
+ source, and configuration files.
31
+
32
+ "Object" form shall mean any form resulting from mechanical
33
+ transformation or translation of a Source form, including but
34
+ not limited to compiled object code, generated documentation,
35
+ and conversions to other media types.
36
+
37
+ "Work" shall mean the work of authorship, whether in Source or
38
+ Object form, made available under the License, as indicated by a
39
+ copyright notice that is included in or attached to the work
40
+ (an example is provided in the Appendix below).
41
+
42
+ "Derivative Works" shall mean any work, whether in Source or Object
43
+ form, that is based on (or derived from) the Work and for which the
44
+ editorial revisions, annotations, elaborations, or other modifications
45
+ represent, as a whole, an original work of authorship. For the purposes
46
+ of this License, Derivative Works shall not include works that remain
47
+ separable from, or merely link (or bind by name) to the interfaces of,
48
+ the Work and Derivative Works thereof.
49
+
50
+ "Contribution" shall mean any work of authorship, including
51
+ the original version of the Work and any modifications or additions
52
+ to that Work or Derivative Works thereof, that is intentionally
53
+ submitted to Licensor for inclusion in the Work by the copyright owner
54
+ or by an individual or Legal Entity authorized to submit on behalf of
55
+ the copyright owner. For the purposes of this definition, "submitted"
56
+ means any form of electronic, verbal, or written communication sent
57
+ to the Licensor or its representatives, including but not limited to
58
+ communication on electronic mailing lists, source code control systems,
59
+ and issue tracking systems that are managed by, or on behalf of, the
60
+ Licensor for the purpose of discussing and improving the Work, but
61
+ excluding communication that is conspicuously marked or otherwise
62
+ designated in writing by the copyright owner as "Not a Contribution."
63
+
64
+ "Contributor" shall mean Licensor and any individual or Legal Entity
65
+ on behalf of whom a Contribution has been received by Licensor and
66
+ subsequently incorporated within the Work.
67
+
68
+ 2. Grant of Copyright License. Subject to the terms and conditions of
69
+ this License, each Contributor hereby grants to You a perpetual,
70
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
71
+ copyright license to reproduce, prepare Derivative Works of,
72
+ publicly display, publicly perform, sublicense, and distribute the
73
+ Work and such Derivative Works in Source or Object form.
74
+
75
+ 3. Grant of Patent License. Subject to the terms and conditions of
76
+ this License, each Contributor hereby grants to You a perpetual,
77
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
78
+ (except as stated in this section) patent license to make, have made,
79
+ use, offer to sell, sell, import, and otherwise transfer the Work,
80
+ where such license applies only to those patent claims licensable
81
+ by such Contributor that are necessarily infringed by their
82
+ Contribution(s) alone or by combination of their Contribution(s)
83
+ with the Work to which such Contribution(s) was submitted. If You
84
+ institute patent litigation against any entity (including a
85
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
86
+ or a Contribution incorporated within the Work constitutes direct
87
+ or contributory patent infringement, then any patent licenses
88
+ granted to You under this License for that Work shall terminate
89
+ as of the date such litigation is filed.
90
+
91
+ 4. Redistribution. You may reproduce and distribute copies of the
92
+ Work or Derivative Works thereof in any medium, with or without
93
+ modifications, and in Source or Object form, provided that You
94
+ meet the following conditions:
95
+
96
+ (a) You must give any other recipients of the Work or
97
+ Derivative Works a copy of this License; and
98
+
99
+ (b) You must cause any modified files to carry prominent notices
100
+ stating that You changed the files; and
101
+
102
+ (c) You must retain, in the Source form of any Derivative Works
103
+ that You distribute, all copyright, patent, trademark, and
104
+ attribution notices from the Source form of the Work,
105
+ excluding those notices that do not pertain to any part of
106
+ the Derivative Works; and
107
+
108
+ (d) If the Work includes a "NOTICE" text file as part of its
109
+ distribution, then any Derivative Works that You distribute must
110
+ include a readable copy of the attribution notices contained
111
+ within such NOTICE file, excluding those notices that do not
112
+ pertain to any part of the Derivative Works, in at least one
113
+ of the following places: within a NOTICE text file distributed
114
+ as part of the Derivative Works; within the Source form or
115
+ documentation, if provided along with the Derivative Works; or,
116
+ within a display generated by the Derivative Works, if and
117
+ wherever such third-party notices normally appear. The contents
118
+ of the NOTICE file are for informational purposes only and
119
+ do not modify the License. You may add Your own attribution
120
+ notices within Derivative Works that You distribute, alongside
121
+ or as an addendum to the NOTICE text from the Work, provided
122
+ that such additional attribution notices cannot be construed
123
+ as modifying the License.
124
+
125
+ You may add Your own copyright statement to Your modifications and
126
+ may provide additional or different license terms and conditions
127
+ for use, reproduction, or distribution of Your modifications, or
128
+ for any such Derivative Works as a whole, provided Your use,
129
+ reproduction, and distribution of the Work otherwise complies with
130
+ the conditions stated in this License.
131
+
132
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
133
+ any Contribution intentionally submitted for inclusion in the Work
134
+ by You to the Licensor shall be under the terms and conditions of
135
+ this License, without any additional terms or conditions.
136
+ Notwithstanding the above, nothing herein shall supersede or modify
137
+ the terms of any separate license agreement you may have executed
138
+ with Licensor regarding such Contributions.
139
+
140
+ 6. Trademarks. This License does not grant permission to use the trade
141
+ names, trademarks, service marks, or product names of the Licensor,
142
+ except as required for reasonable and customary use in describing the
143
+ origin of the Work and reproducing the content of the NOTICE file.
144
+
145
+ 7. Disclaimer of Warranty. Unless required by applicable law or
146
+ agreed to in writing, Licensor provides the Work (and each
147
+ Contributor provides its Contributions) on an "AS IS" BASIS,
148
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
149
+ implied, including, without limitation, any warranties or conditions
150
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
151
+ PARTICULAR PURPOSE. You are solely responsible for determining the
152
+ appropriateness of using or redistributing the Work and assume any
153
+ risks associated with Your exercise of permissions under this License.
154
+
155
+ 8. Limitation of Liability. In no event and under no legal theory,
156
+ whether in tort (including negligence), contract, or otherwise,
157
+ unless required by applicable law (such as deliberate and grossly
158
+ negligent acts) or agreed to in writing, shall any Contributor be
159
+ liable to You for damages, including any direct, indirect, special,
160
+ incidental, or consequential damages of any character arising as a
161
+ result of this License or out of the use or inability to use the
162
+ Work (including but not limited to damages for loss of goodwill,
163
+ work stoppage, computer failure or malfunction, or any and all
164
+ other commercial damages or losses), even if such Contributor
165
+ has been advised of the possibility of such damages.
166
+
167
+ 9. Accepting Warranty or Additional Liability. While redistributing
168
+ the Work or Derivative Works thereof, You may choose to offer,
169
+ and charge a fee for, acceptance of support, warranty, indemnity,
170
+ or other liability obligations and/or rights consistent with this
171
+ License. However, in accepting such obligations, You may act only
172
+ on Your own behalf and on Your sole responsibility, not on behalf
173
+ of any other Contributor, and only if You agree to indemnify,
174
+ defend, and hold each Contributor harmless for any liability
175
+ incurred by, or claims asserted against, such Contributor by reason
176
+ of your accepting any such warranty or additional liability.
177
+
178
+ END OF TERMS AND CONDITIONS
179
+
180
+ APPENDIX: How to apply the Apache License to your work.
181
+
182
+ To apply the Apache License to your work, attach the following
183
+ boilerplate notice, with the fields enclosed by brackets "{}"
184
+ replaced with your own identifying information. (Don't include
185
+ the brackets!) The text should be enclosed in the appropriate
186
+ comment syntax for the file format. We also recommend that a
187
+ file or class name and description of purpose be included on the
188
+ same "printed page" as the copyright notice for easier
189
+ identification within third-party archives.
190
+
191
+ Copyright (c) 2020-2026 NVIDIA CORPORATION & AFFILIATES
192
+
193
+ Licensed under the Apache License, Version 2.0 (the "License");
194
+ you may not use this file except in compliance with the License.
195
+ You may obtain a copy of the License at
196
+
197
+ http://www.apache.org/licenses/LICENSE-2.0
198
+
199
+ Unless required by applicable law or agreed to in writing, software
200
+ distributed under the License is distributed on an "AS IS" BASIS,
201
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202
+ See the License for the specific language governing permissions and
203
+ limitations under the License.
@@ -0,0 +1,30 @@
1
+ solidcore
2
+ Copyright (c) 2026 The solidcore contributors
3
+
4
+ This product is a Rust port (a derivative work) of the SMLib and SM_API
5
+ components of USD BRep, https://github.com/NVIDIA-Omniverse/usd-brep
6
+ (v1.0.1, commit 3fd5b95), licensed under the Apache License, Version 2.0.
7
+ See ATTRIBUTION.md for exactly which upstream material is used.
8
+
9
+ The upstream work carries the following notice:
10
+
11
+ USD BRep is Copyright (c) 2020-2026, NVIDIA CORPORATION & AFFILIATES. All
12
+ rights reserved. NVIDIA-authored portions of this product are licensed under
13
+ the Apache License, Version 2.0, except where otherwise noted.
14
+
15
+ The upstream SMLib and SM_API source files carry the SPDX header:
16
+
17
+ SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
18
+ SPDX-License-Identifier: Apache-2.0
19
+
20
+ Upstream third-party notices (THIRD_PARTY_NOTICES.md at the pinned commit) cover
21
+ OpenUSD, oneTBB, hwloc, MaterialX, OpenSubdiv, CPython, HACL*, pybind11, the
22
+ UsdSolid proposals, usd-validation-nvidia, the repo bootstrap scripts and optional
23
+ Python GUI tooling. None of those components is part of SMLib or SM_API, and none
24
+ is used, ported or redistributed by solidcore, so no further third-party notices
25
+ apply.
26
+
27
+ Modifications: the C++ sources were translated to Rust and restructured (arena
28
+ topology, typed ids, error values instead of status codes, explicit kernel
29
+ state instead of a global context). Each ported Rust file names the upstream
30
+ file(s) it derives from in its header.