Repository navigation
Python: wildmeshing.viewer, a polyscope viewer for a chain of components - #1160
Open
udaykusupati wants to merge 1 commit into
Open
udaykusupati wants to merge 1 commit into
udaykusupati wants to merge 1 commit into
Conversation
viewer.view([(name, outputs), ...]) shows each stage of a chain as the memory route returns it, or as wildmeshing.save wrote it (python -m wildmeshing.viewer <checkpoint stem> ...). Per stage, one item per label of its mesh, in three groups: volume tags (tets, prisms, pyramids, hexes, with the numeric cell and vertex attributes), face tags (the tracked triangles) and edge tags (the curves). Each item can be shown, shown alone, and shown with its envelope, that is, the rows of the envelope the stage returned that carry the label. Envelopes start hidden, as does "ambient", the background. A label keeps its colour in every stage. A slice plane cuts the volumes, and a transform gizmo sits at each mesh's centre. Non-tet cells are drawn as their deduplicated faces: polyscope 2.6.1 crashes drawing prism and hex volume cells (bus error, macOS). polyscope is an optional dependency (pip install -e ".[viewer]"). New test python/tests/test_viewer.py registers every layer of a chain on polyscope's mock backend; it is skipped without polyscope. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
A polyscope viewer for a chain of components,
wildmeshing.viewer: a pipeline such as simwild → topological_offset → prismatic_mesh, viewed stage by stage.viewer.view([(name, outputs), ...])takes each stage's outputs as the memory route returns them.python -m wildmeshing.viewer <checkpoint stem> ...views stages saved withwildmeshing.save.ambientstart hidden.pip install -e ".[viewer]".Test:
python/tests/test_viewer.pyuses polyscope's mock backend and is skipped without polyscope.This is the first step. The goal is a UI that stacks components into a pipeline, with a log.
🤖 Generated with Claude Code