Repository navigation
volume_grid: the Probe tab's Source combo picks which of the app's volumes the grid shows (P8 follow-up) - #1443
Merged
Merged
Conversation
…lumes the grid shows With several volumes loaded, a document could only pick the grid's volume by writing grid.source.volume itself; the panel showed the key as text. - VolumeGridNode publishes grid.volumes: the outputs of the document's data: entries that hold a volume (data.<name>.<output>, as grid.source.volume names them), then the key grid.source.volume names when it is not one of them; empty while it names none, so a host that calls setSource keeps its volume. It is made again only when the source key, an entry, where it points or its rev changes. - volume_grid.ari: the Probe tab's Source is a combo over grid.volumes, writing grid.source.volume, which the grid follows (one volume, not a copy); the text stays in its place while the node offers none. - The demo holds a coarser bunny beside the fine one to pick between. Tests: cvcgl_volume_grid (grid.volumes lists the data: entries' volumes and not the entries holding point classes or a session, the named key last; a volume picked from it is the one the grid shows; a grid naming none offers none), ariadne_loader_test's VolumeGridDrivesItsNodesKeys (the combo's bind, options and visibility). The volume_grid_quad golden changes (the Probe tab) and follows from CI's llvmpipe render.
CI's llvmpipe render (Linux and Windows agree within 1 per channel). Only the Source row and the rows below it change.
This was referenced Nov 22, 2026
The ariglx-web lanes link numpy's wasm build, which needs wasm exceptions.
VolumeGridNode.cpp: D1 replaced the grid's payload_id with cvc::volume_payload_pointee; holds_volume now asks that (or a cvc::volume held by value).
volume_grid_quad.png takes master's for now: the image with both the Contours tab and the Source combo comes from this PR's CI render.
…Contours tab Rendered by package-linux / libcvc-release (llvmpipe) on ae310ab. The Windows render (mesa-dist-win) differs by at most 1 per channel. Against P10's golden only the Probe tab's Source row changed: the plain 'Source:' line is now the combo, and the Session rows below it moved down.
transfix
added a commit
that referenced
this pull request
Nov 23, 2026
…-segment volume_grid_quad.png conflicted (both sides re-rendered it); kept ours until CI renders the merged panel.
transfix
added a commit
that referenced
this pull request
Nov 23, 2026
…erge (P9) The merged panel: the Probe tab's Source combo (#1443) under the five-tab bar. From run 45106838969's ari-golden-Linux-libcvc-release artifact; the Windows render of the same run agrees (no pixel beyond 8).
transfix
added a commit
that referenced
this pull request
Nov 24, 2026
…es in 3D (P9) (#1452) * volume_grid segmentation core: class_surfaces and the tab's stepper (P9) cvc::class_surfaces: the surface of every class of a label volume in one marching-cubes pass (midpoint vertices shared within a class, closed at the volume's faces), Taubin smoothing and outward normals, as a resumable stepper with its job and a parameter table. cvc::volume_grid_segment_stepper: segment_stepper, then class_surfaces on its labels, as one stepper with one progress bar and one Stop, keeping the labels so far for the slices while it marches (segment_stepper::labels_so_far). The Segmentation tab's view table, its rows (coloured as the seeding point classes), color_labels for the slice layer, and grid.segment.* in grid sessions. Tests: class_surfaces_test, volume_grid_segment_test (ports lane). * volume_grid: the Segmentation tab (segment, labels on the slices, class surfaces) (P9) VolumeGridSegmentation, owned by VolumeGridNode: grid.request `segment` runs volume_grid_segment_stepper on the grid's volume, seeded by its shown point classes, as a sliced task (the §1.9 job keys under grid.*); `stop` keeps the last result; a new volume clears it. The labels draw on each plane as a see-through `labels` layer (live while the fronts advance), and each class's surface in a `segments` group under the grid's surfaces. The result is on the data channel (grid.segment.labels, classes, border, surfaces.<n>), its classes as rows under grid.segment.rows; parameters from the seeded_segmentation, view and class_surface tables, seeded from a document's segment: props. Component volume_grid_segmentation.ari, the volume_grid component's Segmentation tab. Ariadne's volume encoder writes a list of volumes as one file's variables (Save classes: VolumeGridRover's SegTmp.rawv). register_cvcgl_extensions installs the segmentation intrinsics per app; segment.surfaces (class_surfaces) joins segment.seeded. Test: cvcgl_volume_grid_segment (and its cooperative run). * volume_grid segmentation: pycvc, segment.surfaces tests, demo, golden, web smoke (P9) pycvc: class_surfaces (keywords, its result, its job), the tab's rows and colour layer, its view table, and volume_grid_segment_job (the tab's run as one job); test_pycvc_volume_grid_segment.py. segmentation_intrinsics_test covers segment.surfaces in its three forms; ariadne_data_test the volume encoder's list of volumes (one .rawv, variables named after the volumes). Demo examples/ariadne/documents/volume_grid_segment.ari: VolRover's Visible Human CT (examples/data/fem/vh4.rawiv) with a seed on the spine and in each arm, segmented above 72 on open, the classes' surfaces in a Bones view; in the gallery as volume_grid_segment_ari. Golden volume_grid_segment.ari (its PNG follows from CI's llvmpipe render), arigl-web smoke case volume_grid_segment.ari (a pick, then segment on the page). The Segmentation tab: volume_grid_segmentation (a window) and volume_grid_segmentation_tab (the controls), included with tab: so the tab adds no nesting level. cvcgl_ariadne_volume_grid gets the 8 MB document host stack (it overflowed Windows' 1 MB on the deeper component). Ariadne's color widget takes fmt: hex (one #rrggbb field beside the swatch, Backend::color_hex); the volume_grid class tables use it. ci.yml: class_surfaces_test and volume_grid_segment_test join SAN_CXX_TESTS. Docs: ARIADNE.md (the grid's segmentation keys, the encoder, the components), the roadmap's "What P9 built". * volume_grid segmentation: goldens from CI's llvmpipe artifact; the stop check no longer races a fast cooperative run (P9) - src/cvcGL/test/golden: volume_grid_segment.png (new), volume_grid.png and volume_grid_quad.png (the Segmentation tab, the Point classes table's hex colour fields), from run 44992251035's ari-golden-Linux-libcvc-release artifact at 6e568ef. - cvcgl_volume_grid_segment: on the Linux package runners a cooperative 24^3 run ended within the frame after `segment`, before `stop` reached it ("stop ends the run" failed). Between `segment` and the next request the test now ticks the nodes without stepping the scheduler, so a cooperative run has not begun when `stop` (or a second `segment`) comes. * volume_grid_segment golden: the default headlight, not the three_point rig (P9) On CI's package-linux lanes the golden's surface views (live mirrors of the main view) were lit by the document's three_point rig in the Release build and by the default headlight in the Debug one, so volume_grid_segment.png (from the Release artifact) failed on libcvc-debug: 1.17% of pixels, all on the surfaces. Rendered locally in Release without the rig, the surfaces look as the Debug lane drew them. The golden now declares no lights; its PNG follows from this run's artifact. * volume_grid_segment golden: the headlight-lit image from CI (P9) Taken from run 45042979740's ari-golden-Linux-libcvc-release artifact at 1084dfd, the first run of the golden without the three_point rig. * extensions.cpp: one space before the segmentation include's comment (clang-format, P9) * goldens: volume_grid, _quad, _segment and _contours from this PR's CI render (P9) The tab bar now holds both Contours and Segmentation, and the class colours show as hex. Taken from run 45078206762's ari-golden-Windows-libcvc-release artifact; every other document there matched its Linux-made golden within 1. * goldens: volume_grid_quad from this PR's CI render after the master merge (P9) The merged panel: the Probe tab's Source combo (#1443) under the five-tab bar. From run 45106838969's ari-golden-Linux-libcvc-release artifact; the Windows render of the same run agrees (no pixel beyond 8). * ImGuiBackend: a tab bar fits the line's visible room, so a flowing row keeps its side panel (P9) With five tabs (Segmentation beside #1451's Contours), volume_grid's side panel went below its views once its Contours page grew taller than the window: the vertical scroll bar left 358 px, less than the tabs' least width (372), so ImGui scrolled them, and the tabs scrolled out of the bar still counted as the line's width. #1450's flowing row saw the panel run past its room and moved it to the next line for good. ImGui also spans the bar to the window's work rect, under the scroll bar (its arrows hidden there), and as wide as last frame's content in a window that scrolls sideways, which kept that content too wide frame after frame (a spurious horizontal scroll bar in volume_grid_segment, the clipped last tab in the earlier goldens). tab_bar now lays the bar out in the visible room and does not count the tabs scrolled out of it. 57 ImGui and Ariadne tests pass locally; the golden harness keeps the panel beside the views. * goldens: volume_grid_contours, _segment and _quad from this PR's CI render after the tab-bar fix (P9) The Contours panel stays beside the views, its tabs scrolled behind arrows in the visible room; the segment window lost its spurious horizontal scroll bar (one more row shows); quad's right edge moved a few pixels. From run 45274811851's ari-golden-Windows-libcvc-release artifact (Windows and Linux renders have agreed within 8 on every earlier run).
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.
P8 follow-up (docs/roadmap/VOLROVER-LIBRARY-PORTS-ROADMAP.md §4). Joe asked: with several volumes loaded in the main scene, how does the volume_grid component pick which one it shows? Until now a document could only write
grid.source.volumeitself, and the panel showed that key as read-only text. This adds a picker.What changes
grid.volumes(VolumeGridNode, published): the volumesgrid.source.volumemay name, one per line, in the form it names them.data:entries that holds a volume (data.<name>.<output>). Entries holding point classes, sessions or bytes are left out.grid.source.volumenames, when that isn't one of them (asource: { state }key).grid.source.volumenames nothing, so a host that callssetSourcekeeps its own volume.revchanges.grid.volumes. Picking one writesgrid.source.volume, and the grid follows it on the next tick: the app's volume itself, not a copy. While the node offers nothing, the read-only Source text shows in its place.examples/ariadne/documents/volume_grid.ari) loads a coarser bunny (24³) beside the 64³ one, so there is something to pick.Tests
Local, MSVC Release:
cvcgl_volume_grid(85):grid.volumeslists the data entries' volumes and not the entries holding point classes or a session, with the namedstatekey last; a volume picked from the list is the one the grid shows (the dataset's pointer); a grid naming no volume offers none.ariadne_loader_test(251):VolumeGridDrivesItsNodesKeyschecks, for both layouts, that the combo bindsgrid.source.volume, takes its options fromgrid.volumes, and shows only while that list is non-empty, with the text shown otherwise.cvcgl_ariadne_volume_grid(17),volume_grid_test,ariadne_data_test.No test opens the combo with a real mouse; the generic combo with computed options is covered elsewhere.
Golden:
volume_grid_quad.pngchanges, because its Probe tab now shows the combo. The new PNG comes from this PR's CI llvmpipe render, as for #1401 and #1423.volume_grid.png(the Point classes tab) is unchanged.Not offered
data:that the grid doesn't name. A filter's output that a document names withsource: { state }shows while it is named.