Skip to content

Replace open3d in network analysis and fix swpip install directory - #2717

Merged
akenmorris merged 2 commits into
masterfrom
amorris/2716-bundle-open3d
Nov 21, 2026
Merged

akenmorris merged 2 commits into
masterfrom
amorris/2716-bundle-open3d

Conversation

@akenmorris

@akenmorris akenmorris commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

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.py doesn'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.

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
akenmorris force-pushed the amorris/2716-bundle-open3d branch from 7bb3df0 to 3b0de01 Compare November 20, 2026 21:58
@akenmorris akenmorris changed the title Bundle open3d and fix swpip install directory Replace open3d in network analysis and fix swpip install directory Nov 20, 2026
@akenmorris
akenmorris merged commit f045572 into master Nov 21, 2026
5 checks passed
@akenmorris
akenmorris deleted the amorris/2716-bundle-open3d branch November 21, 2026 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

open3d missing from bundled Python; swpip installs to the wrong version directory

1 participant