svVascularize

svVascularize GUI

A CAD-style interface for loading domains, placing start points, generating trees/forests, and exporting results.

Back to Docs

Overview

The svv.visualize.gui module provides an interactive, dockable interface for configuring and visualizing synthetic vascularization inside a tissue Domain. It is designed for exploratory workflows where you want to iterate quickly on start points, parameters, and layout before automating runs in Python.

On this page

What The GUI Can Do

Layout At A Glance

Schematic of the svVascularize GUI layout
GUI layout schematic (toolbars, model tree, 3D viewport, properties, info/output).

3D Viewport Controls

The viewport uses standard PyVista/VTK camera navigation:

ActionMouse / Key
Rotate (orbit)Left-drag
PanRight-drag, or Shift + left-drag
ZoomMouse wheel, or middle-drag
Re-center the cameraUse the View toolbar (Fit / Iso / Top / Front / Right)

If the camera feels “lost”, use Fit to bring the full domain and vasculature back into view. You can also toggle visual aids like Grid, Domain, Domain Edges, and the Scale Bar from the View toolbar/menu.

Navigation Icons (View Toolbar)

The View toolbar provides quick camera presets and visibility toggles. These are the icons you’ll use most for navigation:

IconActionShortcutNotes
Fit view icon Fit V, F Re-center the camera to frame all visible objects.
Isometric view icon Iso V, I Isometric view (a good default for overall orientation).
Top view icon Top V, T Top-down view.
Front view icon Front V, 1 Front view.
Right view icon Right V, 3 Right-side view.
Toggle domain visibility icon Domain D Show/hide the domain mesh.
Toggle grid icon Grid G Show/hide the reference grid behind the scene.
Toggle scale bar icon Scale Bar S Show/hide the viewport scale bar (uses the current length unit).

Key Panels

Schematic of the Start Points tab
Start Points tab schematic (network/tree selection, point list, picking/manual entry, direction controls).

Typical Workflow

  1. Load a domain: File → Open to load a domain/mesh.
  2. Add start points: open the Start Points tab and pick points on the domain (and optional directions).
  3. Set parameters: use the Generation tab to choose Tree vs Forest mode and tune the generator.
  4. Generate: click Generate Tree/Forest and inspect the result in 3D; use the Model Tree to isolate parts of the scene.
  5. (Forest) Connect: if needed, connect trees into a network (then export connected splines).
  6. Export: use Fabricate and Simulate menus to write geometry and simulation inputs.
Quick launch:
python -m svv.visualize.gui
python -m svv.visualize.gui --domain path/to/domain.dmn

If point-picking does not work, ensure the domain was created/solved/built before loading.