Skip to content

docs(roadmap): sketch the VolumeRover library ports - #1057

Merged
transfix merged 2 commits into
masterfrom
docs/volrover-library-ports
Nov 8, 2026
Merged

transfix merged 2 commits into
masterfrom
docs/volrover-library-ports

Conversation

@transfix

@transfix transfix commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Adds docs/roadmap/VOLROVER-LIBRARY-PORTS-ROADMAP.md, a sketch for porting four legacy VolumeRover libraries (transfix/volrover src/<Lib>) into libcvc. Docs only.

Each library lands the way mesh_lab / fe_lab did: a headless cvc:: API, a cvc command, pycvc bindings and an Ariadne node type with a component.

  • Skeletonization (§2): about 8k lines of LGPL-2.1 code whose only real dependency is CGAL's 3D Delaunay. It becomes cvc::skeletonize, cvc skeleton and a skeleton request on mesh_lab. Along the way the port fixes the global bounding_box that is never cleared, keeps the sheets VolumeRover2 drops, and shares one cocone core with the near-identical TightCocone, PocketTunnel and Curation copies.
  • Contour tiling (§3): the port is ContourTiler (LGPL), not the old src/Tiling. The old tiler hasn't been built since 2011 and carries a Purdue SHASTRA "educational use only" notice. ContourTiler lands as cvc::tile_contours, cvc tile and a contour_lab node, on a new shared cvc::contour_stack type with .ser, .config/.pts and .contour I/O.
  • VolumeGridRover (§4): its Qt6 code is mostly stubs, so this is a rebuild. It becomes a volume_grid node plus volume_grid.ari: four embedded viewports (XY, XZ, ZY slices and a 3D view) with a voxel probe, point classes, Segment, per-object contours, and Tile into surfaces.
  • GenSeg (§5): seeded segmentation, about 2.8k lines of LGPL code. It implements §2.2 of Bajaj, Yu and Auer, "Volumetric feature extraction and visualization of tomographic molecular imaging", J. Struct. Biol. 144 (2003) 132–143, doi:10.1016/j.jsb.2003.09.037: multi-seed fast marching with speed exp(γ‖∇I‖), where fronts of different classes stop where they meet.
    • Today it reads its input and names its outputs through dangling c_str() pointers, runs on about 25 globals, and passes results through files in the current directory that nothing loads back.
    • The plan is a port that matches the legacy output voxel for voxel, then the paper's automatic seeding from SegMed's diffused-gradient critical points.
    • It lands as cvc::segment_seeded, cvc segment and a Segmentation tab in volume_grid.
  • Ariadne pieces (§6): the viewport widget, tags, named cameras and scenes: already exist. Four reusable pieces are new:
    • an axis-aligned volume_slice node;
    • a mode: slice orthographic camera;
    • viewport pick events into state (the open click-to-world item);
    • overlays that draw on top of a slice.

§7 lays out phases P0–P11. P1 (skeleton core), P3 (tiler core), P5 (segmentation core) and P7 (viewport pieces) are independent and can run in parallel.

§9 lists the open decisions:

  • CGAL's GPL algorithm packages versus the LGPL bundle (recommended: a separate optional library). GMP and MPFR are LGPL and don't affect this.
  • Native-only versus a wasm spike.
  • The skeleton's home, the layout, GenSeg's default seeding, and names.

The facts were checked against libcvc master 7a09366 and volrover master b4a172c. All of the doc's relative links resolve.

A roadmap for porting three legacy VolumeRover libraries into libcvc the
way mesh_lab / fe_lab landed: a headless cvc:: API, a cvc command, pycvc
bindings and an Ariadne node type with a component.

- Skeletonization: cvc::skeletonize, cvc skeleton, a skeleton request on
  mesh_lab; its cocone code becomes one core shared with the
  TightCocone, PocketTunnel and Curation copies.
- Contour tiling: ContourTiler, not the old src/Tiling (unbuilt since
  2011, SHASTRA educational-use-only notice), on a new shared
  cvc::contour_stack; cvc::tile_contours, cvc tile, a contour_lab node.
- VolumeGridRover: rebuilt as a volume_grid node and volume_grid.ari,
  four embedded viewports (XY, XZ, ZY slices and a 3D view) with point
  classes, contours and tiling. It needs a volume_slice node, a
  mode: slice camera, viewport pick events and slice overlays.

Phases P0-P8 and the decisions still open (CGAL's GPL packages,
ContourTiler's licence, wasm, segmentation) are in sections 6 and 8.
- New section 5, seeded segmentation (GenSeg). It implements section 2.2
  of Bajaj, Yu and Auer, J. Struct. Biol. 144 (2003), doi
  10.1016/j.jsb.2003.09.037. The plan is a port that matches the legacy
  output voxel for voxel (it reads through dangling c_str() pointers,
  runs on about 25 globals and passes results through files in the
  current directory), then the paper's automatic seeding from SegMed's
  diffused-gradient critical points. cvc::segment_seeded, cvc segment,
  and a Segmentation tab in volume_grid.
- ContourTiler is LGPL like libcvc. GMP and MPFR are LGPL as well, so
  the GPL question is only CGAL's algorithm packages. GMP's obstacle is
  that wasm has no build of it.
- Phases renumbered P0-P11. The GenSeg core is a fourth independent
  track, and the open decisions are renumbered.
@transfix
transfix merged commit b0e82d2 into master Nov 8, 2026
22 of 28 checks passed
@transfix
transfix deleted the docs/volrover-library-ports branch November 8, 2026 09:35
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.

1 participant