feat(three): add voxel boolean operations and interactive spec example#10
Closed
aka-blackboots wants to merge 1 commit into
Closed
feat(three): add voxel boolean operations and interactive spec example#10aka-blackboots wants to merge 1 commit into
aka-blackboots wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
opengeometry-threepackage so examples and higher-level tooling can consume the result.Description
booleanOperation(left, right, options)which returns aBooleanShape(seemain/opengeometry-three/src/operations/boolean.ts) and supportsunion,subtract, andintersectwith optionsgridResolutionandconstrainResultToPositiveY.main/opengeometry-three/src/operations/index.tsand updated package entry exports inmain/opengeometry-three/index.tsso the API is available from@og-three.examples-vite/operations/boolean.html,examples-vite/src/pages/operations-boolean.ts, andsrc/examples/boolean.ts, and surfaced a catalog card inexamples-vite/index.html.AI-DOCs/2026-03-04-boolean-operations-implementation.mdincluding rationale, how it maps to the RobustBoolean approach, usage notes, and caveats.Testing
cargo fmt --manifest-path main/opengeometry/Cargo.toml --alland it completed successfully.cargo check --manifest-path main/opengeometry/Cargo.tomland it completed successfully (Rust build checks passed with warnings only).cargo test --manifest-path main/opengeometry/Cargo.tomland all repository unit tests passed (14library tests +3primitives smoke tests; all OK).npm --prefix main/opengeometry-three testwhich executed the package-level test script and returned (note: package-level test is a noop by design and completed successfully), whilenpm --prefix main/opengeometry-three run build-example-threefailed in this environment because the WebAssembly packagemain/opengeometry/pkg/opengeometry(the built wasm artifacts) is not present so Vite cannot resolve../opengeometry/pkg/opengeometry, therefore the example build is blocked until the wasm package is produced (residual risk: example bundling and runtime wasm resolution depend on the built wasm artifact).Codex Task