Repository navigation
Bind exact ray, closest-point, and signed-distance queries - #322
Open
alecjacobson wants to merge 1 commit into
Open
alecjacobson wants to merge 1 commit into
alecjacobson wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
Expose the exact ray and closest-point query APIs now merged in libigl main, including
approximate_signed_distance_exact_sign. It returns NumPy arrays(S, I, bary): the sign/zeros ofS, selected triangle, and barycentric zero pattern are exact; distance magnitudes and positive weights are approximate.box_simplices,eytzinger_aabb, and callback-based ray traversal so Python callers can build and reuse trees. Expose a reusable feature-exposure cache with copy-returning label accessors. Batch signing releases the GIL and keeps C++ parallelism.4f0f2dc489c9842d2f7940022d73e24b66baaf25. Document numerical contracts, mesh preconditions, cache invalidation, and usage in the README and generated docstrings. This PR is independent of the float32-overload and documentation-site PRs.Validation: full Linux Release source build, including all optional modules; 127 tests passed, 16 Pyodide-only tests skipped. The 15 new tests cover cached/uncached parity, exact shared-feature ties, rounded-away ray determinants, underflow-preserved signs/feature support, array layouts, empty inputs, and propagated callback/worker exceptions. Predicate type stubs parse successfully; the documentation generator and strict MkDocs build from PR #308 pass with all nine locally built modules. Platform CI passes on Linux x64/ARM, macOS Intel/ARM, Windows x64/ARM, and Pyodide (143 tests passed).
Prepared by Codex.