parasolid-kit 0.1.0.dev4__tar.gz → 0.2.0__tar.gz

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 (272) hide show
  1. parasolid_kit-0.2.0/.gitattributes +18 -0
  2. parasolid_kit-0.2.0/CHANGELOG.md +30 -0
  3. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/Cargo.lock +2 -2
  4. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/Cargo.toml +2 -2
  5. parasolid_kit-0.2.0/LICENSES/Apache-2.0.txt +201 -0
  6. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/PKG-INFO +107 -76
  7. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/README.md +103 -73
  8. parasolid_kit-0.2.0/corpus/README.md +138 -0
  9. parasolid_kit-0.2.0/corpus/expected/release-v1/values.x_b.json +220 -0
  10. parasolid_kit-0.2.0/corpus/expected/release-v1/values.x_t.json +219 -0
  11. parasolid_kit-0.2.0/corpus/manifest.jsonl +3 -0
  12. parasolid_kit-0.2.0/corpus/release-checks.json +68 -0
  13. parasolid_kit-0.2.0/corpus/release-checks.schema.json +421 -0
  14. parasolid_kit-0.2.0/crates/parasolid-core/Cargo.toml +23 -0
  15. parasolid_kit-0.2.0/crates/parasolid-core/LICENSE +21 -0
  16. parasolid_kit-0.2.0/crates/parasolid-core/LICENSE-APACHE-2.0 +201 -0
  17. parasolid_kit-0.2.0/crates/parasolid-core/PARTIAL_READERS.md +90 -0
  18. parasolid_kit-0.2.0/crates/parasolid-core/README.md +116 -0
  19. parasolid_kit-0.2.0/crates/parasolid-core/examples/benchmark.rs +70 -0
  20. parasolid_kit-0.2.0/crates/parasolid-core/examples/release_corpus.rs +142 -0
  21. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/brep/mapper.rs +30 -17
  22. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/brep/metrics.rs +11 -1
  23. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/brep/model.rs +6 -0
  24. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/brep/profile_roles.rs +101 -36
  25. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/lib.rs +4 -0
  26. parasolid_kit-0.2.0/crates/parasolid-core/src/partial/analytic.rs +178 -0
  27. parasolid_kit-0.2.0/crates/parasolid-core/src/partial/blend.rs +251 -0
  28. parasolid_kit-0.2.0/crates/parasolid-core/src/partial/intersection.rs +841 -0
  29. parasolid_kit-0.2.0/crates/parasolid-core/src/partial/layout.rs +137 -0
  30. parasolid_kit-0.2.0/crates/parasolid-core/src/partial/mod.rs +67 -0
  31. parasolid_kit-0.2.0/crates/parasolid-core/src/partial/native_fin.rs +228 -0
  32. parasolid_kit-0.2.0/crates/parasolid-core/src/partial/native_hierarchy/tests.rs +240 -0
  33. parasolid_kit-0.2.0/crates/parasolid-core/src/partial/native_hierarchy.rs +453 -0
  34. parasolid_kit-0.2.0/crates/parasolid-core/src/partial/offset.rs +159 -0
  35. parasolid_kit-0.2.0/crates/parasolid-core/src/partial/spline.rs +1308 -0
  36. parasolid_kit-0.2.0/crates/parasolid-core/src/partial/subset.rs +50 -0
  37. parasolid_kit-0.2.0/crates/parasolid-core/src/partial/sweep.rs +113 -0
  38. parasolid_kit-0.2.0/crates/parasolid-core/src/partial/topology.rs +909 -0
  39. parasolid_kit-0.2.0/crates/parasolid-core/src/partial/view.rs +15 -0
  40. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/schema/profile.rs +2 -0
  41. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/schema/profiles/mod.rs +9 -0
  42. parasolid_kit-0.2.0/crates/parasolid-core/src/schema/profiles/onshape_current.rs +97 -0
  43. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/schema/profiles/sch13006.rs +7 -8
  44. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/schema/profiles/sch30000.rs +74 -6
  45. parasolid_kit-0.2.0/crates/parasolid-core/src/schema/profiles/solidworks.rs +72 -0
  46. parasolid_kit-0.2.0/crates/parasolid-core/tests/builtin_onshape_current.rs +81 -0
  47. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/tests/builtin_sch30000.rs +6 -6
  48. parasolid_kit-0.2.0/crates/parasolid-core/tests/builtin_solidworks.rs +95 -0
  49. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/tests/support/sch30000.rs +74 -1
  50. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-python/src/brep.rs +16 -0
  51. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/docs/api.md +158 -30
  52. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/docs/builtin-profiles.md +174 -23
  53. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/docs/format-support.md +180 -38
  54. parasolid_kit-0.2.0/docs/images/viewer.png +0 -0
  55. parasolid_kit-0.2.0/docs/onshape-composite.md +91 -0
  56. parasolid_kit-0.2.0/docs/onshape-current-parametric.md +111 -0
  57. parasolid_kit-0.2.0/docs/releasing.md +96 -0
  58. parasolid_kit-0.2.0/docs/resource-validation.md +111 -0
  59. parasolid_kit-0.2.0/docs/solidworks-partitions.md +62 -0
  60. parasolid_kit-0.2.0/docs/v30-parametric-viewer.md +116 -0
  61. parasolid_kit-0.2.0/docs/viewer-validation.json +315 -0
  62. parasolid_kit-0.2.0/docs/viewer-validation.md +118 -0
  63. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/fuzz/Cargo.lock +1 -1
  64. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/fuzz/fuzz_targets/parse.rs +25 -3
  65. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/pyproject.toml +38 -4
  66. parasolid_kit-0.2.0/scripts/benchmark_parser.py +283 -0
  67. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/scripts/prepare_fuzz_corpus.py +151 -0
  68. parasolid_kit-0.2.0/scripts/release_corpus_oracle.py +408 -0
  69. parasolid_kit-0.2.0/scripts/release_corpus_parametric.py +520 -0
  70. parasolid_kit-0.2.0/scripts/release_corpus_runtime.py +180 -0
  71. parasolid_kit-0.2.0/scripts/release_geometry.py +169 -0
  72. parasolid_kit-0.2.0/scripts/run_fuzz.py +107 -0
  73. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/scripts/verify_artifacts.py +136 -11
  74. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/scripts/verify_isolated_install.py +11 -7
  75. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/scripts/verify_optional_install.py +26 -2
  76. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/scripts/verify_optional_interop_i6.py +59 -62
  77. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/scripts/verify_optional_interop_i7.py +4 -3
  78. parasolid_kit-0.2.0/scripts/verify_release.py +190 -0
  79. parasolid_kit-0.2.0/scripts/verify_release_corpus.py +320 -0
  80. parasolid_kit-0.2.0/scripts/verify_viewer_install.py +238 -0
  81. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/__init__.py +1 -1
  82. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/brep/_native.py +7 -0
  83. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/brep/geometry.py +3 -0
  84. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/brep/model.py +1 -1
  85. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/cli.py +4 -2
  86. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/occt/conversion.py +80 -13
  87. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/occt/coverage.py +10 -9
  88. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/occt/geometry.py +46 -0
  89. parasolid_kit-0.2.0/src/parasolid_kit/interop/occt/intersection.py +187 -0
  90. parasolid_kit-0.2.0/src/parasolid_kit/interop/occt/parametric.py +600 -0
  91. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/occt/topology.py +2 -0
  92. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/occt/validation.py +17 -1
  93. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/preview/server.py +1 -0
  94. parasolid_kit-0.2.0/src/parasolid_kit/interop/preview/static/index.html +71 -0
  95. parasolid_kit-0.2.0/src/parasolid_kit/interop/preview/static/viewer.css +200 -0
  96. parasolid_kit-0.2.0/src/parasolid_kit/interop/preview/static/viewer.js +6720 -0
  97. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/preview/tessellation.py +67 -19
  98. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/preview/writer.py +7 -6
  99. parasolid_kit-0.2.0/tests/support/import_contract.py +46 -0
  100. parasolid_kit-0.2.0/tests/support/release_fixture.py +22 -0
  101. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_artifact_gate.py +104 -11
  102. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_builtin_bspline_surface_runtime.py +1 -1
  103. parasolid_kit-0.2.0/tests/test_builtin_onshape_composite_runtime.py +123 -0
  104. parasolid_kit-0.2.0/tests/test_builtin_onshape_current_runtime.py +169 -0
  105. parasolid_kit-0.2.0/tests/test_builtin_onshape_parametric_runtime.py +142 -0
  106. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_builtin_schema_runtime.py +7 -5
  107. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_builtin_spcurve_runtime.py +23 -5
  108. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_builtin_trimmed_runtime.py +3 -3
  109. parasolid_kit-0.2.0/tests/test_builtin_v30_complex_runtime.py +85 -0
  110. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_cadquery_adapter.py +8 -2
  111. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_cli.py +72 -1
  112. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_distribution_runtime.py +85 -1
  113. parasolid_kit-0.2.0/tests/test_fuzz_runner.py +51 -0
  114. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_geometry_coverage.py +1 -1
  115. parasolid_kit-0.2.0/tests/test_import_isolation.py +24 -0
  116. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_interop.py +15 -11
  117. parasolid_kit-0.2.0/tests/test_occt_parametric.py +221 -0
  118. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_preview.py +70 -16
  119. parasolid_kit-0.2.0/tests/test_public_contracts.py +54 -0
  120. parasolid_kit-0.2.0/tests/test_release_corpus.py +312 -0
  121. parasolid_kit-0.2.0/tests/test_release_corpus_oracle.py +141 -0
  122. parasolid_kit-0.2.0/tests/test_release_gate.py +148 -0
  123. parasolid_kit-0.2.0/tests/test_release_geometry.py +46 -0
  124. parasolid_kit-0.2.0/viewer/README.md +252 -0
  125. parasolid_kit-0.2.0/viewer/asset-manifest.json +21 -0
  126. parasolid_kit-0.2.0/viewer/build.mjs +71 -0
  127. parasolid_kit-0.2.0/viewer/package-lock.json +687 -0
  128. parasolid_kit-0.2.0/viewer/package.json +24 -0
  129. parasolid_kit-0.2.0/viewer/src/adapter.ts +93 -0
  130. parasolid_kit-0.2.0/viewer/src/app.ts +248 -0
  131. parasolid_kit-0.2.0/viewer/src/filter.ts +56 -0
  132. parasolid_kit-0.2.0/viewer/src/glb.ts +116 -0
  133. parasolid_kit-0.2.0/viewer/src/index.html +71 -0
  134. parasolid_kit-0.2.0/viewer/src/index.ts +17 -0
  135. parasolid_kit-0.2.0/viewer/src/manifest.ts +131 -0
  136. parasolid_kit-0.2.0/viewer/src/selection.ts +63 -0
  137. parasolid_kit-0.2.0/viewer/src/style.css +59 -0
  138. parasolid_kit-0.2.0/viewer/src/validation.ts +102 -0
  139. parasolid_kit-0.2.0/viewer/tests/adapter.test.ts +150 -0
  140. parasolid_kit-0.2.0/viewer/tests/browser.mjs +296 -0
  141. parasolid_kit-0.2.0/viewer/tests/filter.test.ts +42 -0
  142. parasolid_kit-0.2.0/viewer/tests/fixtures/box/preview.glb +0 -0
  143. parasolid_kit-0.2.0/viewer/tests/fixtures/box/preview.manifest.json +1356 -0
  144. parasolid_kit-0.2.0/viewer/tests/fixtures/box-cm-no-edges/preview.glb +0 -0
  145. parasolid_kit-0.2.0/viewer/tests/fixtures/box-cm-no-edges/preview.manifest.json +372 -0
  146. parasolid_kit-0.2.0/viewer/tests/fixtures/box-partial/preview.glb +0 -0
  147. parasolid_kit-0.2.0/viewer/tests/fixtures/box-partial/preview.manifest.json +1359 -0
  148. parasolid_kit-0.2.0/viewer/tests/fixtures/cylinder-hole/preview.glb +0 -0
  149. parasolid_kit-0.2.0/viewer/tests/fixtures/cylinder-hole/preview.manifest.json +674 -0
  150. parasolid_kit-0.2.0/viewer/tests/fixtures/oracle.json +6600 -0
  151. parasolid_kit-0.2.0/viewer/tests/fixtures/sheet/preview.glb +0 -0
  152. parasolid_kit-0.2.0/viewer/tests/fixtures/sheet/preview.manifest.json +265 -0
  153. parasolid_kit-0.2.0/viewer/tests/fixtures/two-boxes/preview.glb +0 -0
  154. parasolid_kit-0.2.0/viewer/tests/fixtures/two-boxes/preview.manifest.json +2656 -0
  155. parasolid_kit-0.2.0/viewer/tests/generate_fixtures.py +82 -0
  156. parasolid_kit-0.2.0/viewer/tests/helpers.ts +26 -0
  157. parasolid_kit-0.2.0/viewer/tests/launch_cli.py +33 -0
  158. parasolid_kit-0.2.0/viewer/tests/production.mjs +126 -0
  159. parasolid_kit-0.2.0/viewer/tests/screenshot.mjs +86 -0
  160. parasolid_kit-0.2.0/viewer/tests/selection.test.ts +49 -0
  161. parasolid_kit-0.2.0/viewer/tests/serve_previews.py +212 -0
  162. parasolid_kit-0.2.0/viewer/third-party/manifest.json +45 -0
  163. parasolid_kit-0.2.0/viewer/third-party/n8ao-1.10.1.txt +121 -0
  164. parasolid_kit-0.2.0/viewer/third-party/postprocessing-6.39.0.txt +19 -0
  165. parasolid_kit-0.2.0/viewer/third-party/three-0.184.0.txt +21 -0
  166. parasolid_kit-0.2.0/viewer/third-party/three-cad-viewer-5.0.6.txt +18 -0
  167. parasolid_kit-0.2.0/viewer/tsconfig.json +18 -0
  168. parasolid_kit-0.1.0.dev4/.gitattributes +0 -4
  169. parasolid_kit-0.1.0.dev4/corpus/README.md +0 -55
  170. parasolid_kit-0.1.0.dev4/crates/parasolid-core/Cargo.toml +0 -19
  171. parasolid_kit-0.1.0.dev4/src/parasolid_kit/interop/preview/static/index.html +0 -88
  172. parasolid_kit-0.1.0.dev4/src/parasolid_kit/interop/preview/static/viewer.css +0 -299
  173. parasolid_kit-0.1.0.dev4/src/parasolid_kit/interop/preview/static/viewer.js +0 -732
  174. parasolid_kit-0.1.0.dev4/tests/test_public_contracts.py +0 -52
  175. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/LICENSE +0 -0
  176. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/corpus/manifest.schema.json +0 -0
  177. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/brep/mod.rs +0 -0
  178. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/comparison.rs +0 -0
  179. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/document.rs +0 -0
  180. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/error.rs +0 -0
  181. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/header.rs +0 -0
  182. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/reader.rs +0 -0
  183. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/schema/catalog.rs +0 -0
  184. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/schema/coverage.rs +0 -0
  185. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/schema/decoder.rs +0 -0
  186. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/schema/mod.rs +0 -0
  187. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/schema/model.rs +0 -0
  188. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/schema/provider.rs +0 -0
  189. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/schema/registry.rs +0 -0
  190. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/schema/wire.rs +0 -0
  191. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/text_document.rs +0 -0
  192. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/text_reader.rs +0 -0
  193. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/src/user_fields.rs +0 -0
  194. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/tests/builtin_sch13006.rs +0 -0
  195. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/tests/builtin_sch30000_brep.rs +0 -0
  196. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/tests/builtin_sch30000_holdout_values.rs +0 -0
  197. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-core/tests/embedded_base_membership.rs +0 -0
  198. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-python/Cargo.toml +0 -0
  199. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/crates/parasolid-python/src/lib.rs +0 -0
  200. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/docs/doubly-periodic-surface-evidence.json +0 -0
  201. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/docs/doubly-periodic-surface-evidence.md +0 -0
  202. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/docs/nurbs-surface-evidence.json +0 -0
  203. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/docs/nurbs-surface-evidence.md +0 -0
  204. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/docs/rational-periodic-surface-evidence.json +0 -0
  205. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/docs/rational-periodic-surface-evidence.md +0 -0
  206. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/docs/step-accuracy-data.json +0 -0
  207. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/docs/step-accuracy.md +0 -0
  208. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/fuzz/Cargo.toml +0 -0
  209. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/fuzz/fuzz_targets/inspect.rs +0 -0
  210. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/fuzz/fuzz_targets/schema_catalog.rs +0 -0
  211. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/scripts/verify_corpus.py +0 -0
  212. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/scripts/verify_optional_interop_i0.py +0 -0
  213. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/scripts/verify_optional_interop_i5.py +0 -0
  214. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/__main__.py +0 -0
  215. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/_native.py +0 -0
  216. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/api.py +0 -0
  217. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/binary/__init__.py +0 -0
  218. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/binary/document.py +0 -0
  219. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/binary/header.py +0 -0
  220. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/brep/__init__.py +0 -0
  221. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/brep/topology.py +0 -0
  222. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/diagnostics.py +0 -0
  223. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/errors.py +0 -0
  224. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/__init__.py +0 -0
  225. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/_typing.py +0 -0
  226. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/cadquery.py +0 -0
  227. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/dependency.py +0 -0
  228. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/errors.py +0 -0
  229. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/limits.py +0 -0
  230. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/occt/__init__.py +0 -0
  231. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/occt/model.py +0 -0
  232. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/occt/options.py +0 -0
  233. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/occt/step.py +0 -0
  234. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/preview/__init__.py +0 -0
  235. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/preview/glb.py +0 -0
  236. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/interop/preview/model.py +0 -0
  237. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/limits.py +0 -0
  238. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/py.typed +0 -0
  239. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/schema/__init__.py +0 -0
  240. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/schema/api.py +0 -0
  241. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/schema/model.py +0 -0
  242. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/schema/provider.py +0 -0
  243. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/summary.py +0 -0
  244. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/text/__init__.py +0 -0
  245. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/text/header.py +0 -0
  246. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/validation/__init__.py +0 -0
  247. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/src/parasolid_kit/validation/comparison.py +0 -0
  248. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/__init__.py +0 -0
  249. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/_occt_fixtures.py +0 -0
  250. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/support/__init__.py +0 -0
  251. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/support/parasolid_binary.py +0 -0
  252. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/support/parasolid_schema.py +0 -0
  253. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/support/parasolid_text.py +0 -0
  254. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_brep.py +0 -0
  255. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_builtin_cone_runtime.py +0 -0
  256. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_builtin_embedded_runtime.py +0 -0
  257. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_builtin_intersection_data_runtime.py +0 -0
  258. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_builtin_intersection_runtime.py +0 -0
  259. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_corpus_gate.py +0 -0
  260. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_corpus_manifest.py +0 -0
  261. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_diagnostics.py +0 -0
  262. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_inspect_xb.py +0 -0
  263. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_limits.py +0 -0
  264. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_occt_conversion.py +0 -0
  265. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_parse_xb.py +0 -0
  266. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_parse_xt.py +0 -0
  267. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_schema_catalog.py +0 -0
  268. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_schema_resolution.py +0 -0
  269. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_step_export.py +0 -0
  270. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_summary.py +0 -0
  271. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_synthetic_binary.py +0 -0
  272. {parasolid_kit-0.1.0.dev4 → parasolid_kit-0.2.0}/tests/test_user_fields.py +0 -0
@@ -0,0 +1,18 @@
1
+ # Viewer assets are hash-pinned at build time and runtime on every platform.
2
+ /src/parasolid_kit/interop/preview/static/*.html text eol=lf
3
+ # Generated bundles preserve upstream license/template/shader whitespace verbatim.
4
+ /src/parasolid_kit/interop/preview/static/*.css text eol=lf -whitespace
5
+ /src/parasolid_kit/interop/preview/static/*.js text eol=lf -whitespace
6
+ /viewer/** text eol=lf
7
+ /viewer/**/*.glb -text
8
+ /viewer/third-party/*.txt -text -whitespace
9
+
10
+ # Release baselines and synthetic wire bytes are hash-pinned on every platform.
11
+ /corpus/expected/**/*.json text eol=lf
12
+ /corpus/generated/synthetic/**/*.x_t -text
13
+ /corpus/generated/synthetic/**/*.x_b -text
14
+
15
+ # Compare distributed licenses byte-for-byte across all wheel platforms.
16
+ /LICENSE text eol=lf
17
+ /LICENSES/*.txt text eol=lf
18
+ /crates/parasolid-core/LICENSE* text eol=lf
@@ -0,0 +1,30 @@
1
+ # Changelog
2
+
3
+ ## 0.2.0 — unreleased
4
+
5
+ - Add the exact Onshape `SCH_3701212_37102_13006` profile, including analytic
6
+ geometry, direct NURBS curves/surfaces, intersection and trimmed curves,
7
+ surface-parametric curves, and fully declared multi-part transmit blocks.
8
+ Other modeller keys still require their own reviewed profile or an explicit
9
+ schema provider.
10
+ - Preserve intersection chart and limit positions in the source B-Rep.
11
+ - Add the bundled local viewer and bounded UV/intersection conversion.
12
+ Parser, OCCT conversion, STEP export and preview retain separate support limits.
13
+ - Extend release validation with native NURBS coefficients, sampled parametric
14
+ geometry, producer tolerance reporting and hashed native evidence.
15
+
16
+ ### Migration from 0.1.0
17
+
18
+ - The V30 profile is `onshape-sch30000-r3`; the new current Onshape profile is
19
+ `onshape-sch37102-13006-r3`. Consumers that pin profile IDs or hashes must
20
+ update their expectations for these exact keys.
21
+ - Intersection definitions include `chart_points`, `start_points` and
22
+ `end_points`. Strict JSON consumers must accept these additional fields.
23
+ - Core area and volume require complete planar polygonal boundaries. Curved
24
+ boundaries return `None`, including cases previously assigned incorrect
25
+ endpoint-polygon metrics. Bounding boxes still use source topological vertices.
26
+ - Reading a NURBS definition does not establish OCCT/STEP/preview conversion for
27
+ every rational, closed or periodic variant. Assemblies, native CAD containers
28
+ and SolidWorks delta application remain outside the complete parser contract.
29
+
30
+ See [format support](docs/format-support.md) for exact keys and stage boundaries.
@@ -88,7 +88,7 @@ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
88
88
 
89
89
  [[package]]
90
90
  name = "parasolid-core"
91
- version = "0.1.0-dev4"
91
+ version = "0.2.0"
92
92
  dependencies = [
93
93
  "serde_json",
94
94
  "sha2",
@@ -96,7 +96,7 @@ dependencies = [
96
96
 
97
97
  [[package]]
98
98
  name = "parasolid-python"
99
- version = "0.1.0-dev4"
99
+ version = "0.2.0"
100
100
  dependencies = [
101
101
  "parasolid-core",
102
102
  "pyo3",
@@ -4,11 +4,11 @@ exclude = ["fuzz"]
4
4
  resolver = "3"
5
5
 
6
6
  [workspace.package]
7
- version = "0.1.0-dev4"
7
+ version = "0.2.0"
8
8
  edition = "2024"
9
9
  rust-version = "1.88"
10
10
  description = "Schema-aware parser core for Parasolid X_T and X_B data"
11
- license = "MIT"
11
+ license = "MIT AND Apache-2.0"
12
12
  repository = "https://github.com/monozukuri-ai/parasolid-kit"
13
13
 
14
14
  [workspace.dependencies]
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: parasolid-kit
3
- Version: 0.1.0.dev4
4
- Classifier: Development Status :: 2 - Pre-Alpha
3
+ Version: 0.2.0
4
+ Classifier: Development Status :: 5 - Production/Stable
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: Programming Language :: Python :: 3 :: Only
7
7
  Classifier: Programming Language :: Python :: 3.10
@@ -16,19 +16,24 @@ Requires-Dist: cadquery-ocp-novtk>=7.9.3.1,<7.10 ; extra == 'occt'
16
16
  Provides-Extra: cadquery
17
17
  Provides-Extra: occt
18
18
  License-File: LICENSE
19
+ License-File: LICENSES/Apache-2.0.txt
19
20
  Summary: Schema-aware Python parser for Parasolid X_T and X_B data
20
- License-Expression: MIT
21
+ License-Expression: MIT AND Apache-2.0
21
22
  Requires-Python: >=3.10
22
23
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
23
24
  Project-URL: Repository, https://github.com/monozukuri-ai/parasolid-kit
24
25
 
25
26
  # parasolid-kit
26
27
 
27
- `parasolid-kit` is an experimental, schema-aware parser for Parasolid X_T and
28
+ The Python-independent Rust parser is also available as
29
+ [`parasolid-core`](https://crates.io/crates/parasolid-core). See its
30
+ [Rust API and input limitations](crates/parasolid-core/README.md).
31
+
32
+ `parasolid-kit` is a schema-aware parser for Parasolid X_T and
28
33
  X_B transmit files. Parsing and geometry mapping run in a safe Rust core, while
29
34
  Python users work with immutable typed models.
30
35
 
31
- The project is read-focused and currently pre-alpha. It is intended for file
36
+ The project is read-focused. It is intended for file
32
37
  inspection, validation, research, and conversion pipelines where preserving
33
38
  the transmitted structure matters more than silently approximating unsupported
34
39
  data.
@@ -36,62 +41,57 @@ data.
36
41
  ## Features
37
42
 
38
43
  - Inspect X_T and X_B headers without a schema catalog.
39
- - Parse the verified Onshape V30 subset without an external schema file.
40
- - Use an explicit schema provider for inputs outside the built-in profile.
44
+ - Parse the verified Onshape V30/V13, extracted iCAD, and SolidWorks partition
45
+ subsets without an external schema file.
46
+ - Use an explicit schema provider for inputs outside the built-in profiles.
41
47
  - Reconstruct an unmodified parsed X_B document byte-for-byte.
42
48
  - Compare X_T and X_B documents after pointer-index remapping.
43
49
  - Map supported topology, analytic geometry, and NURBS records to a typed B-Rep
44
50
  source model.
45
51
  - Parse, map, and summarize one file with `read_brep()` or the human-readable
46
52
  `check` command.
47
- - Convert the exact optional OCCT subset and export validated AP242 plus a
53
+ - Convert the documented optional OCCT subset and export validated AP242 plus a
48
54
  provenance sidecar without routing through CadQuery.
49
55
  - Wrap the same strict conversion as CadQuery `Shape` values for immediate
50
56
  inspection and downstream CadQuery operations.
51
- - Write a bounded GLB/source manifest and inspect faces or edges in a bundled,
52
- offline local WebGL viewer.
57
+ - Inspect bounded GLB/source previews with the bundled three-cad-viewer UI:
58
+ face/edge source picking, body visibility, diagnostic filters, and section views.
53
59
  - Return structured diagnostics and enforce configurable resource limits.
54
60
  - Use the same functionality from Python or a command-line interface with
55
61
  deterministic JSON output where required.
56
62
 
57
63
  See [format support and limitations](docs/format-support.md) before relying on
58
- the parser for production data.
64
+ the parser for production data. Maintainers use the [release gates](docs/releasing.md).
59
65
 
60
66
  ## Installation
61
67
 
62
- Python 3.10 or newer is required. Install the current development release from
68
+ Python 3.10 or newer is required. Install the current release from
63
69
  [PyPI](https://pypi.org/project/parasolid-kit/):
64
70
 
65
71
  ```bash
66
- python -m pip install --pre parasolid-kit
67
- ```
68
-
69
- The `--pre` option is required while only development releases are available.
70
- To install the current release by exact version instead:
71
-
72
- ```bash
73
- python -m pip install "parasolid-kit==0.1.0.dev4"
72
+ python -m pip install parasolid-kit
74
73
  ```
75
74
 
76
- Stable releases, once available, can be installed without `--pre`:
75
+ To install the stable release by exact version:
77
76
 
78
77
  ```bash
79
- python -m pip install parasolid-kit
78
+ python -m pip install "parasolid-kit==0.1.0"
80
79
  ```
81
80
 
82
81
  Alternatively, install a downloaded wheel directly:
83
82
 
84
83
  ```bash
85
- python -m pip install /path/to/parasolid_kit-0.1.0.dev4-cp310-abi3-PLATFORM.whl
84
+ python -m pip install /path/to/parasolid_kit-0.2.0-cp310-abi3-PLATFORM.whl
86
85
  ```
87
86
 
88
- Header inspection works immediately after installation. Complete parsing and
89
- B-Rep checking also work without a schema file for the built-in
90
- `SCH_3000000_30000` profile (`verified_subset`): Onshape V30 text/neutral binary
91
- exports of single solid boxes, prisms, cylinders, through-holes, spheres, and
92
- verified solids with elliptical edges, with zero user fields. Other keys and uncovered types require an explicit provider; see
93
- [Schema catalogs](#schema-catalogs). STEP, CadQuery, and preview operations also
94
- require an optional runtime and geometry supported by that adapter.
87
+ Header inspection works immediately after installation. Parsing and source
88
+ B-Rep checking also work without a schema file for the exact-key
89
+ [supported profiles](docs/format-support.md#supported-profiles). Each covers a
90
+ verified subset with zero user fields; the table distinguishes producer,
91
+ encoding, geometry, and saved-state evidence. Native CAD containers are handled
92
+ by their own adapters. Other keys and uncovered types require an explicit
93
+ provider; see [Schema catalogs](#schema-catalogs). STEP, CadQuery, and preview
94
+ operations require an optional runtime and geometry supported by that adapter.
95
95
 
96
96
  ### Optional interoperability profiles
97
97
 
@@ -101,10 +101,10 @@ boundary:
101
101
 
102
102
  ```bash
103
103
  # Headless OCP runtime without CadQuery or VTK; Python 3.10+
104
- python -m pip install --pre "parasolid-kit[occt]"
104
+ python -m pip install "parasolid-kit[occt]"
105
105
 
106
106
  # CadQuery and its full OCP runtime; Linux/macOS, Python 3.11+
107
- python -m pip install --pre "parasolid-kit[cadquery]"
107
+ python -m pip install "parasolid-kit[cadquery]"
108
108
  ```
109
109
 
110
110
  Do not install both profiles in one environment. Their OCP distributions can
@@ -122,7 +122,7 @@ On Intel macOS, the CadQuery extra uses Numba 0.62.x, the last release series
122
122
  with prebuilt wheels for that platform. Use Python 3.11–3.13 for this profile
123
123
  on Intel Macs; see [Numba's platform notice](https://numba.readthedocs.io/en/stable/release/0.63.0-notes.html#deprecation-of-macos-x86-64-intel-support).
124
124
 
125
- The `[occt]` profile converts the documented exact I7 subset from `BrepModel` into a
125
+ The `[occt]` profile converts the documented geometry subset from `BrepModel` into a
126
126
  validated OCCT shape and can export that result directly as AP242. The
127
127
  `[cadquery]` profile runs the same strict converter with CadQuery's full OCP
128
128
  runtime and exposes the result through CadQuery `Shape` objects. Tessellation
@@ -184,36 +184,17 @@ multiple bodies become a `cadquery.Compound`. The adapter does not infer a
184
184
  feature history. Source mapping belongs to the original conversion result and must not
185
185
  be treated as valid after a returned CadQuery object is modified.
186
186
 
187
- Generate a persistent, self-contained preview from that same conversion:
188
-
189
- ```python
190
- from parasolid_kit.interop.preview import PreviewOptions, write_preview
191
-
192
- preview = write_preview(
193
- converted,
194
- parsed.brep,
195
- "model.parasolid-preview",
196
- options=PreviewOptions(linear_deflection=0.1),
197
- )
198
- print(preview.index_path, preview.report.to_dict())
199
- ```
200
-
201
- The directory contains `index.html`, `viewer.js`, `viewer.css`, `preview.glb`,
202
- and `preview.manifest.json`. Each face/edge primitive retains its
203
- conversion-local key plus Parasolid entity ID, source node ID, byte range,
204
- geometry kind, and diagnostics. The manifest never includes raw source bytes
205
- or a path-like `source_identity`; only an exact `sha256:<digest>` is retained.
206
-
207
- ![parasolid-kit offline B-Rep viewer showing the model and its Parasolid source mapping](https://raw.githubusercontent.com/monozukuri-ai/parasolid-kit/main/assets/viewer.png)
208
-
209
187
  I7 extends the exact OCCT path with ellipses, parabolas, hyperbolas, explicit
210
188
  trimmed curves, cone frustums, untrimmed spheres and ring tori, open
211
189
  non-periodic non-rational 3D NURBS, and exact offset surfaces.
212
190
  `geometry_coverage()` exposes the parser, OCCT, STEP, and constraint status
213
- without importing OCP. Rational, closed, or periodic NURBS, pcurves,
214
- intersection curves, and blend surfaces remain explicit errors; they are not
215
- approximated from incomplete semantics. Unknown orientation, invalid
216
- references or topology, metric disagreement, and requested healing likewise
191
+ without importing OCP. The [parametric extension](docs/v30-parametric-viewer.md)
192
+ also supports bounded open nonrational surface-parameter curves and
193
+ source-identified open intersections, including trimmed analytic/NURBS faces.
194
+ Their numerical approximation and source-tolerance warnings remain in the
195
+ conversion report. Rational, closed, or periodic NURBS, unsupported parametric
196
+ variants, and blend construction remain explicit errors. Unknown orientation,
197
+ invalid references or topology, metric disagreement, and requested healing likewise
217
198
  stop with `OcctConversionError`, whose partial report retains the diagnostic.
218
199
  Generated OCCT seam/boundary topology remains explicit in the source map.
219
200
 
@@ -233,19 +214,52 @@ cd parasolid-kit
233
214
  python -m pip install .
234
215
  ```
235
216
 
236
- ## Schema catalogs
217
+ ## Local viewer
237
218
 
238
- When neither a provider nor a schema directory is supplied, default parsing
239
- selects one of these compiled profiles by the exact internal stream key:
219
+ To use the viewer described here, install this checkout with the OCCT extra in
220
+ a fresh virtual environment (Rust 1.88+ is required for a source install):
221
+
222
+ ```bash
223
+ python -m pip install ".[occt]"
224
+ parasolid-kit viewer model.x_t --source-unit mm
225
+ ```
226
+
227
+ Set `--source-unit` to the actual unit of your input; it is never inferred.
228
+ `view` is an alias. The command opens a loopback URL and keeps its five output
229
+ files after Ctrl-C. `--no-open` prints the URL without launching a browser;
230
+ `--write-only` generates files and exits. Node/npm are unnecessary for use.
231
+
232
+ ![three-cad-viewer displaying two boxes with the selected face's source ID, node and byte range](docs/images/viewer.png)
233
+
234
+ Public synthetic two-body fixture, with source face 102 selected. Display colors
235
+ are illustrative. The image uses Linux/SwiftShader; it is not a real CAD-file test.
240
236
 
241
- | Internal schema key | Built-in profile | Reviewed base layout |
242
- |---|---|---|
243
- | `SCH_3000000_30000` | `onshape-sch30000-r2` | Onshape V30, 24 types / 202 field groups |
244
- | `SCH_1300000_13006` | `onshape-sch13006-r6` | Onshape V13, 40 types / 327 field groups |
245
- | `SCH_3000310_30000_13006` | `icad-sch30000-13006-r5` | 13006 base plus trimmed curve (133): 30 types / 240 groups; embedded edits and full type 204 |
237
+ See the [preview API and controls](docs/api.md#bounded-local-preview) for saving,
238
+ reopening, units and partial output, [display limits](docs/format-support.md#viewer-display-boundary)
239
+ for supported scope, and [viewer development](viewer/README.md) for build/test steps.
240
+ The [validation record](docs/viewer-validation.md) separates local artifact checks
241
+ from unrun CI/platform tests; these changes have not been published as a release.
246
242
 
247
- All have `verified_subset` coverage and require zero user fields. They need no
248
- catalog, network, or CAD installation at runtime.
243
+ ## Schema catalogs
244
+
245
+ When neither a provider nor a schema directory is supplied, default parsing
246
+ selects a compiled profile by the exact internal stream key. The
247
+ [shared support matrix](docs/format-support.md#supported-profiles) lists all
248
+ keys, profile revisions, definition hashes, and stage-specific evidence.
249
+
250
+ The source tree also includes an [Onshape current-key compound-geometry profile](docs/onshape-composite.md)
251
+ for `SCH_3701212_37102_13006`; this addition is not yet in a published release.
252
+
253
+ The [SolidWorks partition profile](docs/solidworks-partitions.md) reads a
254
+ partition's B-Rep. Associated delta streams remain unsupported, so a complete
255
+ partition is not a reconstructed final SolidWorks configuration.
256
+
257
+ All have `verified_subset` coverage and require zero user fields. Runtime,
258
+ build, and installation need no external catalog or CAD installation; the
259
+ parser does not access the network. Normal package/build dependencies are
260
+ separate. Development catalog comparisons and the type-204 membership audit
261
+ are documented in the
262
+ [profile provenance](docs/builtin-profiles.md#sources-and-method).
249
263
  [Profile provenance and coverage](docs/builtin-profiles.md) records their sources,
250
264
  canonical hashes, and validation limits. The iCAD profile accepts extracted
251
265
  Parasolid streams; `.icd` container parsing remains outside this package.
@@ -345,7 +359,10 @@ APIs remain available when each stage must be controlled independently.
345
359
  `map_brep()` can return a valid but incomplete model when a well-formed geometry
346
360
  record has no typed mapping yet. Inspect `parsed.complete` and
347
361
  `parsed.brep.diagnostics` instead of assuming that every parsed record has been
348
- interpreted.
362
+ interpreted. `complete` describes this stream's source B-Rep mapping, including
363
+ for a SolidWorks partition. It does not certify geometry evaluation, adapter
364
+ conversion, or a CAD container's saved configuration. See
365
+ [result stages](docs/format-support.md#result-stages-and-caller-responsibilities).
349
366
 
350
367
  ## Command line
351
368
 
@@ -374,21 +391,26 @@ parasolid-kit export-step model.x_t model.step \
374
391
 
375
392
  # Generate the same bounded artifacts, bind an ephemeral localhost port, and
376
393
  # open the bundled offline viewer. Use --no-open for remote/CI shells.
377
- parasolid-kit view model.x_t \
394
+ parasolid-kit viewer model.x_t \
378
395
  --source-unit m
379
396
  ```
380
397
 
381
398
  `check` is human-readable by default and accepts `--json`; the existing
382
- `inspect`, `parse`, `compare`, `export-step`, and `view` reports remain JSON.
383
- `view` writes `<input-stem>.parasolid-preview` before serving only its five
399
+ `inspect`, `parse`, `compare`, `export-step`, and `viewer` reports remain JSON.
400
+ `viewer` (also available as `view`) uses the bundled three-cad-viewer UI and
401
+ writes `<input-stem>.parasolid-preview` before serving only its five
384
402
  fixed resources from `127.0.0.1` and an ephemeral port. `--write-only` retains
385
403
  the artifacts without a server, `--overwrite` replaces an existing output,
386
404
  and non-loopback `--host` values require the separate `--allow-external`
387
405
  acknowledgement. Partial display is opt-in with `--allow-partial` and always
388
406
  shows a warning plus the missing-entity list. Exit
389
- status is `0` for a complete/exported result or equivalent documents, `1` for
390
- an incomplete B-Rep mapping or a valid comparison that found differences, and
407
+ status is `0` when the requested stage succeeds (`inspect` validates a header
408
+ and raw `parse` validates a node stream), `1` for
409
+ an incomplete `check` result or a valid comparison that found differences, and
391
410
  `2` for input, schema, parse, conversion, or export errors.
411
+ `parse --brep` can return `0` with `brep.complete=false`; use `check` when
412
+ completeness must affect the exit code. An allowed partial preview also returns
413
+ `0` if generation succeeds.
392
414
  `python -m parasolid_kit` provides the same interface.
393
415
 
394
416
  ## Documentation
@@ -397,6 +419,7 @@ an incomplete B-Rep mapping or a valid comparison that found differences, and
397
419
  - [Format support and limitations](docs/format-support.md)
398
420
  - [Built-in profile provenance](docs/builtin-profiles.md)
399
421
  - [Corpus provenance and redistribution policy](corpus/README.md)
422
+ - [Viewer validation](docs/viewer-validation.md)
400
423
 
401
424
  ## Project boundaries
402
425
 
@@ -404,6 +427,9 @@ an incomplete B-Rep mapping or a valid comparison that found differences, and
404
427
  assembly structures, occurrence transforms, visibility, or appearance. A
405
428
  format-specific adapter can extract a bounded X_T/X_B payload and pass it to
406
429
  this package without making the parser depend on that CAD product.
430
+ The iCAD container adapter has not been created; current evidence uses
431
+ locally extracted streams. sldkit already uses the shared Rust partial readers
432
+ for SolidWorks, with configuration and incomplete-state handling in its adapter.
407
433
 
408
434
  The base package has no runtime dependency on a CAD product, geometry kernel,
409
435
  or OpenCascade binding. Optional profiles add an explicitly selected OCP or
@@ -412,5 +438,10 @@ not bundle Siemens schema data or proprietary CAD files.
412
438
 
413
439
  ## License
414
440
 
415
- This project is licensed under the [MIT License](LICENSE).
441
+ The original implementation is under the [MIT License](LICENSE). Partial transmit
442
+ readers adopted from cadmpeg/sldkit are under [Apache-2.0](LICENSES/Apache-2.0.txt);
443
+ the combined distribution declares `MIT AND Apache-2.0`. See the
444
+ [reader provenance](crates/parasolid-core/PARTIAL_READERS.md).
445
+ The bundled viewer also contains third-party notices; see
446
+ [viewer dependencies and licenses](viewer/README.md#dependencies-and-licenses).
416
447