Repository navigation
Replace open3d in network analysis and fix swpip install directory - #2717
Merged
Merged
Conversation
open3d was only used to triangulate the particles with ball pivoting, and it was missing from the bundled Python and has no wheel for the Linux build environment. Triangulate the particles over the mean surface instead: label each surface vertex with its nearest particle, and turn surface triangles that touch three different particles into particle triangles.
The 6.9 bump missed torch_install.py and the swpython wrappers, so swpip and on-demand PyTorch installs went to the 6.8 user site-packages that Studio no longer reads. The C++ side and wrappers now derive the version from CMake, and CMake fails if shapeworks/api_version.py doesn't match.
akenmorris
force-pushed
the
amorris/2716-bundle-open3d
branch
from
November 20, 2026 21:58
7bb3df0 to
3b0de01
Compare
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.
Fixes #2716. Network analysis only used open3d to triangulate the particles with ball pivoting. open3d was missing from the bundled Python and has no wheel for the Linux build environment, so this replaces it. The particles are now triangulated over the mean surface: each surface vertex is labeled with its nearest particle, and surface triangles that touch three different particles become particle triangles. On well-sampled shapes the graph matches ball pivoting (95-100% of edges shared), and it no longer leaves isolated particles on thin shapes.
Also defines the Python API version in one place: the C++ side and the swpython wrappers derive it from CMake, and CMake fails if
shapeworks/api_version.pydoesn't match. That fixes swpip and on-demand PyTorch installing into the stale 6.8 directory. For 6.8.1, only the first commit needs backporting.