Repository navigation
Kernel interface: swept volume of a body (Modelling::swept_volume), with its solidcore adapter - #25956
Conversation
One general entry in the kernel interface for solidcore's swept volume (tangency-labs/solidcore#3532): `Modelling::swept_volume(body, motion)` with `SolidMotion` (a slide, a turn or a screw) beside the other sweep inputs in kernel-api's `sweep` module. The adapter (crates/kernel) implements it for solidcore: the motion handed to solidcore-ops' swept_volume, its named refusals kept as KernelError::Invalid. The OCCT backend refuses it ("a swept volume"). The router's `swept_volume` runs solidcore's, the only kernel that builds it, so no OpKind is added and nothing is routed yet; docs/design/kernel-layer.md lists it among the later operations. Tests: brep-bench swept/box-slid-aslant through the interface (812), and a whole turn refused by name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Change
The app reaches solidcore's new swept volume operation (#25942 slides and turns, #25948 screws; design: tangency-labs/solidcore#3532) through the kernel interface. This PR adds one general entry for it.
kernel-api:Modelling::swept_volume(body, motion), withSolidMotion(Slide,Turn,Screw) placed in thesweepmodule beside the other sweep inputs.crates/kernel, the adapter for solidcore (newswept_volume.rs):solidcore_ops::swept_volume;KernelError::Invalidwith the reason;swept_volumeruns solidcore's, the only kernel that builds it. NoOpKindis added and nothing is routed. The OCCT backend refuses it ("a swept volume").docs/design/kernel-layer.md: one line under "Later operations". Nothing else in the design changes.This is stacked on #25948, which is stacked on #25942. It will be rebased onto main once those land.
The SolidCraft UI is the next step and is not in this PR: a "Solid" profile option in Sweep, with cut, join or new body as the result. It needs Nate's UI review.
Changes a default: no
Validation
cargo test -p solidcraft-kernel --lib swept_volume: 2 new tests pass:swept/box-slid-aslantthrough the interface, 812 to 1e-6 (bmander/brep-bench, MIT OR Apache-2.0);cargo clippy -p solidcraft-kernel-api -p solidcraft-kernel --all-targets -- -D warnings: clean.JYVIKO-FIRST, merge-tree against each of jyviko's open PRs:
kernel-api(developables,profiles,lib.rs): clean.crates/kernel/src/lib.rs: clean.crates/kernel/tests/step_export_bytes.rs, which this PR doesn't touch.The #25258 plan has nothing against a new general entry, and this one doesn't touch the feature crates.
Screenshots of the behavior (when observable)
Nothing to show in the app yet: no command uses the entry until the UI step.
Summary by CodeRabbit