PyDiscretizedVesselTree

class multimodars.PyDiscretizedVesselTree

Bases: object

Fully discretized coronary vessel tree (aorta + RCA + LCA + side branches).

discretized_aorta

Cross-sectional contours along the aortic centerline.

Type:

list of PyContour

discretized_rca_main

Cross-sectional contours along the RCA main vessel.

Type:

list of PyContour

discretized_lca_main

Cross-sectional contours along the LCA main vessel.

Type:

list of PyContour

rca_branches

Per-side-branch contour lists for the RCA. rca_branches[i] corresponds to RCA branch_id i + 1.

Type:

list of list of PyContour

lca_branches

Per-side-branch contour lists for the LCA.

Type:

list of list of PyContour

rca_references

Orientation triplets (main_ref, clock_ref, counter_clock_ref) along the RCA, sorted proximal → distal. Each element is a 3-tuple of (x, y, z) coordinate tuples.

Type:

list of tuple

lca_references

Same structure for the LCA.

Type:

list of tuple

ao_rca

Centroid (x, y, z) of the aorta slice closest to the RCA ostium.

Type:

tuple of float

ao_lca

Centroid (x, y, z) of the aorta slice closest to the LCA ostium.

Type:

tuple of float

calculate_ref_pts()

Recompute orientation reference triplets and aortic ostium centroids from the current contour data.

Call this after replacing contours (e.g. with B-spline fits) so that rca_references, lca_references, ao_rca, and ao_lca reflect the updated geometry.