solidfunc 0.1.0a1__cp311-abi3-win_amd64.whl

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.
solidfunc/__init__.py ADDED
@@ -0,0 +1,25 @@
1
+ """An experimental functional Python API for SolidCore.
2
+
3
+ Lengths are in millimetres; volumes are in cubic millimetres. Geometry is
4
+ opaque and operations leave their inputs unchanged.
5
+ """
6
+
7
+ from importlib.metadata import version
8
+
9
+ from ._api import Bounds, Point3D, bounds, box, export_step, translate, volume
10
+ from ._core import Solid, SolidCoreError
11
+
12
+ __version__ = version("solidfunc")
13
+
14
+ __all__ = [
15
+ "Bounds",
16
+ "Point3D",
17
+ "Solid",
18
+ "SolidCoreError",
19
+ "__version__",
20
+ "bounds",
21
+ "box",
22
+ "export_step",
23
+ "translate",
24
+ "volume",
25
+ ]
solidfunc/_api.py ADDED
@@ -0,0 +1,64 @@
1
+ """The public functional interface, independent of binding details."""
2
+
3
+ from math import isfinite
4
+ from os import PathLike
5
+ from pathlib import Path
6
+ from typing import TypeAlias
7
+
8
+ from . import _core
9
+ from ._core import Solid
10
+
11
+ Point3D: TypeAlias = tuple[float, float, float]
12
+ Bounds: TypeAlias = tuple[Point3D, Point3D]
13
+
14
+
15
+ def _positive(name: str, value: float) -> None:
16
+ if not isfinite(value) or value <= 0:
17
+ raise ValueError(f"{name} must be finite and greater than zero")
18
+
19
+
20
+ def box(
21
+ *,
22
+ length: float,
23
+ width: float,
24
+ height: float,
25
+ origin: Point3D = (0.0, 0.0, 0.0),
26
+ ) -> Solid:
27
+ """Construct a box extending along +X, +Y and +Z from its lower corner.
28
+
29
+ Dimensions must be positive and finite. ``origin`` is the lower corner,
30
+ not the centre. All coordinates and dimensions are in millimetres.
31
+ """
32
+ for name, value in (("length", length), ("width", width), ("height", height)):
33
+ _positive(name, value)
34
+ return _core._box(origin, (length, width, height))
35
+
36
+
37
+ def volume(solid: Solid, *, relative_accuracy: float = 1e-9) -> float:
38
+ """Measure enclosed volume in mm³ at the requested relative accuracy."""
39
+ _positive("relative_accuracy", relative_accuracy)
40
+ return _core._volume(solid, relative_accuracy)
41
+
42
+
43
+ def translate(solid: Solid, *, x: float = 0.0, y: float = 0.0, z: float = 0.0) -> Solid:
44
+ """Return an independent translated solid, leaving ``solid`` unchanged."""
45
+ return _core._translate(solid, (x, y, z))
46
+
47
+
48
+ def bounds(solid: Solid) -> Bounds:
49
+ """Return axis-aligned minimum and maximum corners in millimetres."""
50
+ # PyO3 converts Rust arrays to lists; expose tuples consistently in Python.
51
+ lower, upper = _core._bounds(solid)
52
+ return (lower[0], lower[1], lower[2]), (upper[0], upper[1], upper[2])
53
+
54
+
55
+ def export_step(solid: Solid, path: str | PathLike[str], *, name: str = "Part") -> None:
56
+ """Write a solid as STEP AP242, preserving its geometry and placement.
57
+
58
+ ``path`` may be a string or a path object. An existing file is overwritten.
59
+ ``name`` labels the solid in the exported file. Length units are millimetres.
60
+ Geometry conversion completes before the output file is opened.
61
+ """
62
+ destination = Path(path)
63
+ text = _core._step_text(solid, destination.name, name)
64
+ destination.write_text(text, encoding="utf-8", newline="\n")
solidfunc/_core.pyd ADDED
Binary file
solidfunc/_core.pyi ADDED
@@ -0,0 +1,17 @@
1
+ """Types for the private PyO3 extension."""
2
+
3
+ from typing import final
4
+
5
+ class SolidCoreError(RuntimeError): ...
6
+
7
+ @final
8
+ class Solid:
9
+ """Opaque geometry; construct with solidfunc's functions."""
10
+
11
+ def _box(
12
+ origin: tuple[float, float, float], size: tuple[float, float, float]
13
+ ) -> Solid: ...
14
+ def _volume(solid: Solid, relative_accuracy: float) -> float: ...
15
+ def _translate(solid: Solid, offset: tuple[float, float, float]) -> Solid: ...
16
+ def _bounds(solid: Solid) -> tuple[list[float], list[float]]: ...
17
+ def _step_text(solid: Solid, file_name: str, name: str) -> str: ...
solidfunc/py.typed ADDED
File without changes
@@ -0,0 +1,138 @@
1
+ Metadata-Version: 2.4
2
+ Name: solidfunc
3
+ Version: 0.1.0a1
4
+ Classifier: Development Status :: 2 - Pre-Alpha
5
+ Classifier: Intended Audience :: Science/Research
6
+ Classifier: Programming Language :: Python :: 3
7
+ Classifier: Programming Language :: Python :: 3.11
8
+ Classifier: Programming Language :: Python :: 3.12
9
+ Classifier: Programming Language :: Python :: 3.13
10
+ Classifier: Programming Language :: Python :: 3.14
11
+ Classifier: Programming Language :: Rust
12
+ Classifier: Typing :: Typed
13
+ License-File: LICENSE
14
+ License-File: licenses/SolidCore-ATTRIBUTION.md
15
+ License-File: licenses/SolidCore-LICENSE
16
+ License-File: licenses/SolidCore-NOTICE
17
+ Summary: An experimental functional Python API for SolidCore.
18
+ Keywords: cad,geometry,solidcore,functional
19
+ Author: David Straub
20
+ License-Expression: MIT
21
+ Requires-Python: >=3.11
22
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
23
+ Project-URL: Issues, https://github.com/DavidMStraub/solidfunc/issues
24
+ Project-URL: Repository, https://github.com/DavidMStraub/solidfunc
25
+
26
+ # solidfunc
27
+
28
+ An experimental functional Python API for [SolidCore](https://github.com/tangency-labs/solidcore).
29
+
30
+ This is a small academic exploration of typed, functional CAD as code, informed
31
+ by [CadQuery](https://github.com/CadQuery/cadquery),
32
+ [build123d](https://github.com/gumyr/build123d), and
33
+ [CAD as Code](https://github.com/DavidMStraub/cad-as-code-book). Its scope is a
34
+ limited set of examples for investigating API design and kernel behavior.
35
+
36
+ ## Hello world
37
+
38
+ ```python
39
+ import solidfunc as sf
40
+
41
+ block = sf.box(length=10, width=20, height=30)
42
+ moved = sf.translate(block, x=100)
43
+
44
+ print(sf.volume(block)) # 6000.0 mm³
45
+ print(sf.bounds(block)) # ((0.0, 0.0, 0.0), (10.0, 20.0, 30.0))
46
+ print(sf.bounds(moved)) # ((100.0, 0.0, 0.0), (110.0, 20.0, 30.0))
47
+
48
+ sf.export_step(block, "hello.step")
49
+ ```
50
+
51
+ Geometry is opaque. Functions return new geometry and preserve their inputs.
52
+ Lengths are millimetres, volumes are cubic millimetres, and a box's `origin`
53
+ is its lower corner. Currently implemented: `box`, `translate`, `volume`,
54
+ `bounds`, and `export_step`. This initial example exercises SolidCore itself.
55
+
56
+ The example writes a STEP AP242 file that can be opened in other CAD tools.
57
+ With CadQuery and OCP CAD Viewer installed, view it using:
58
+
59
+ ```python
60
+ import cadquery as cq
61
+ from ocp_vscode import show
62
+
63
+ show(cq.importers.importStep("hello.step"))
64
+ ```
65
+
66
+ CadQuery and the viewer are optional tools for inspecting exported geometry.
67
+
68
+ ## Development
69
+
70
+ Install [uv](https://docs.astral.sh/uv/) and [Rust](https://rustup.rs/), then:
71
+
72
+ ```sh
73
+ git clone https://github.com/DavidMStraub/solidfunc.git
74
+ cd solidfunc
75
+ uv sync --locked --config-setting build-args=--profile=dev
76
+ uv run --no-sync python examples/hello_world.py
77
+ uv run --no-sync pytest
78
+ uv run --no-sync ruff check .
79
+ uv run --no-sync ruff format --check .
80
+ uv run --no-sync mypy
81
+ cargo fmt --all --check
82
+ cargo clippy --locked --all-targets -- -D warnings
83
+ ```
84
+
85
+ The project uses a mixed Python/Rust layout: the public typed API lives in
86
+ `python/solidfunc`, and the private PyO3 extension in `src/lib.rs` calls
87
+ `solidcore-ops` and `solidcore-step`. Maturin builds and installs the extension
88
+ during `uv sync`; the development command above uses the faster debug profile.
89
+ Python 3.11+ is supported using the CPython stable ABI (`abi3`).
90
+
91
+ SolidCore is pinned to commit `cb9bee4bb9f56880c9973a9f8e99c83fdec24ad3`
92
+ in `Cargo.toml`; `Cargo.lock` and `uv.lock` pin the resolved dependencies.
93
+ Updating the kernel is an explicit change to that revision followed by a
94
+ lockfile update and the geometry checks.
95
+
96
+ To check STEP exchange against CadQuery's independent kernel:
97
+
98
+ ```sh
99
+ uv run --no-sync --with 'cadquery>=2.8,<3' pytest tests/test_step_export.py
100
+ ```
101
+
102
+ The CadQuery round-trip tests are skipped when that optional dependency is absent.
103
+
104
+ ## Builds and publishing
105
+
106
+ ```sh
107
+ uv build
108
+ uv run twine check dist/*
109
+ ```
110
+
111
+ CI checks Python formatting, lint, typing, and geometry behavior, plus Rust
112
+ formatting and clippy. The reusable wheel workflow builds and tests native
113
+ wheels for Linux, Windows, and macOS, and builds a source distribution.
114
+ The **Build distributions** workflow can also be run manually.
115
+
116
+ Publishing is a separate **Publish to PyPI** workflow triggered by a published
117
+ GitHub release. It checks that the tag matches the package version, builds and
118
+ tests the distributions, and publishes with OIDC trusted publishing.
119
+
120
+ Before the first release, register a pending trusted publisher on PyPI:
121
+
122
+ | Setting | Value |
123
+ | --- | --- |
124
+ | PyPI project | `solidfunc` |
125
+ | GitHub owner | `DavidMStraub` |
126
+ | Repository | `solidfunc` |
127
+ | Workflow filename | `publish.yml` |
128
+ | Environment | `pypi` |
129
+
130
+ The initial Cargo version `0.1.0-alpha.1` maps to Python version `0.1.0a1`.
131
+ Publish a GitHub release tagged `v0.1.0a1` to release it. No PyPI API token is
132
+ needed. Creating the repository or pushing a commit does not publish a package.
133
+
134
+ ## License
135
+
136
+ solidfunc is MIT licensed. SolidCore and its SMLib-derived code are Apache-2.0
137
+ licensed; the distribution includes the corresponding upstream notices.
138
+
@@ -0,0 +1,13 @@
1
+ solidfunc/__init__.py,sha256=ASWCEoC6VQckffDWaVcOAqvm5gCUcvQ4-rGcVBIXigA,582
2
+ solidfunc/_api.py,sha256=ZROzkoN6nGk5wi3jGgVxdHdpJZa0-LjFsoVTcWAEnMw,2406
3
+ solidfunc/_core.pyd,sha256=Yo7naFI0LSQ_VZuJbMYobH5OZpd6cuhqBUt6OaUVreY,22324224
4
+ solidfunc/_core.pyi,sha256=4uaFvBjgem-fcHHlwbBoefuPCkm3BbVlT5mv6TlPICg,593
5
+ solidfunc/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ solidfunc-0.1.0a1.dist-info/METADATA,sha256=vBW7Ck7n3UZJS4MfHXoJnDfRe51gycR0CQ194hYrDvc,5145
7
+ solidfunc-0.1.0a1.dist-info/WHEEL,sha256=DRguzO_JHkJTcrXDweuHyM66sVwM00caBYZ3J_zMn0w,96
8
+ solidfunc-0.1.0a1.dist-info/licenses/LICENSE,sha256=cOptJKHiKHMX6Vh5ZChFAj3PQXo5pXwah01zihS9ErA,1090
9
+ solidfunc-0.1.0a1.dist-info/licenses/licenses/SolidCore-ATTRIBUTION.md,sha256=Vv9El-hfrGAyo57nl7971jSReEU_hHasPHgSiMqopbo,5074
10
+ solidfunc-0.1.0a1.dist-info/licenses/licenses/SolidCore-LICENSE,sha256=i_HkmoThqlSV8HtvWSncA859Rj3WSWWRA2KIT1a1WTs,11652
11
+ solidfunc-0.1.0a1.dist-info/licenses/licenses/SolidCore-NOTICE,sha256=4LdXcxltTrjhwHzfCd78tuYAiUg5aSWY-fDQFri7owg,1524
12
+ solidfunc-0.1.0a1.dist-info/sboms/solidfunc.cyclonedx.json,sha256=RKVhnmhImCmpNfbKYX-k5vbSYHDD_yTOoPJ0jHqG2VQ,33004
13
+ solidfunc-0.1.0a1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.16.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp311-abi3-win_amd64
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 David Straub
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,101 @@
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 unit cases |
26
+ | `tests/prog_test/` | Reference tests; source of unit 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 upstream sources are read, never built or linked: a local clone that is never
32
+ committed (`upstream/` is gitignored), also the source of the `TestFiles` fixtures.
33
+
34
+ ## Upstream material not used
35
+
36
+ The following upstream layers are **not** read, ported, built or linked:
37
+
38
+ - OCCT translation: `source/OCCT_BREP_IMPORT`, `source/OCCT_BREP_EXPORT`,
39
+ `TestFiles/occt_breps*`
40
+ - USD / Hydra integration: `source/SM_API_USD`, `source/BREP_SM_USD`,
41
+ `source/BREP_USD_DATA`, `source/HYDRA_USD_BREP`, `source/USD_BREP_UTILS`,
42
+ `source/schema`, `TestFiles/usd_TestFiles`
43
+ - Python bindings and tooling: `source/SmPyLib`, `source/SmPyDevLib`, `tools/`
44
+ - Proposals: `proposals/`
45
+
46
+ No GPL/LGPL code is used anywhere in solidcore.
47
+
48
+ ## Per-file provenance
49
+
50
+ Every ported Rust file begins with a header naming the upstream source file(s) it
51
+ derives from and a table mapping its Rust items to upstream names (see
52
+ [`docs/agent-style.md`](https://github.com/tangency-labs/solidcore/blob/main/docs/agent-style.md#file-header)).
53
+
54
+ ## Test corpora
55
+
56
+ These are fetched at run time (never committed) and used only by the goldens crate's
57
+ `--ssi-corpus` correctness report (`crates/goldens/README.md`).
58
+
59
+ ### ssi-corpus
60
+
61
+ - Repository: <https://github.com/jyviko/ssi-corpus> (fetched by
62
+ `scripts/fetch-ssi-corpus.sh` into the gitignored `corpus/ssi/`)
63
+ - Pinned commit: `b04c8a6`
64
+ - Author: Iraklis Kourtis (jyviko), published for solidcore in
65
+ [issue #17](https://github.com/tangency-labs/solidcore/issues/17)
66
+ - Licence: MIT OR Apache-2.0
67
+ - Copyright: (c) 2026 SolidCraft contributors
68
+ - Use: 119 surface/surface intersection cases with exact ground truth. The scorer in
69
+ `crates/goldens/src/ssi/` (`score.rs`, `polyset.rs`, `geom.rs`) is ported from the
70
+ corpus' `scoring/score.py` and `scoring/ssi_geom.py`, and `crates/goldens/src/ssi/kernel.rs`
71
+ samples intersections as its `runner/ssi_runner.cpp` does; each of those files says so in
72
+ its header. The truth generators are not ported.
73
+
74
+ ### Yang, Jia & Yan (2023)
75
+
76
+ - Yang, Jia and Yan, "Topology Guaranteed B-Spline Surface/Surface Intersection",
77
+ *ACM Transactions on Graphics* 42(6), Article 211, 2023. Licence: CC-BY.
78
+ - Use: the corpus' 25 `y23_*` cases come from this paper (its published data, or surface
79
+ pairs reconstructed from its figures); each such case cites it in its `source` field.
80
+
81
+ ## Progress site
82
+
83
+ ### d3-force
84
+
85
+ - Packages: `d3-force` 3.0.0 with its dependencies `d3-dispatch` 3.0.1, `d3-quadtree` 3.0.1
86
+ and `d3-timer` 3.0.1, from npm (<https://github.com/d3/d3-force>)
87
+ - Licence: ISC (see [`site/assets/vendor/LICENSE-d3.txt`](site/assets/vendor/LICENSE-d3.txt))
88
+ - Copyright: (c) 2010-2021 Mike Bostock
89
+ - Use: the unmodified `dist/*.min.js` files, concatenated into
90
+ `site/assets/vendor/d3-force.bundle.min.js`, lay out the dependency graph on the
91
+ progress site (`graph.html`). They are served with the site and not loaded from a CDN.
92
+
93
+ ### Sprint emblems
94
+
95
+ - Files: `site/assets/sprints/blends.png`, `site/assets/sprints/kernel-rig.png` and
96
+ `site/assets/sprints/local-operation.png`
97
+ - Origin: original images made for this project with Google's Gemini image model
98
+ (`gemini-3.1-flash-lite-image`), then cut out to a transparent background; no third-party
99
+ artwork or marks
100
+ - Use: each sprint's emblem on its page, and on its social card
101
+ (`site/assets/sprints/<slug>-card.png`, made by `site/gen-sprint-cards.py`)
@@ -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.