|
104 | 104 | # compute left atrium fiber
|
105 | 105 | la = simulator.compute_left_atrial_fiber()
|
106 | 106 |
|
| 107 | +# Import the appendage landmarks. |
| 108 | +from ansys.health.heart.pre.database_utils import right_atrium_appendage_landmarks |
| 109 | + |
| 110 | +# Get the right atrium appendage landmark of the first case of Rodero2021. |
| 111 | +right_atrium_appendage_coordinates = right_atrium_appendage_landmarks.get("Rodero2021").get(1) |
| 112 | + |
107 | 113 | # Appendage apex point should be manually given to compute right atrium fiber
|
108 |
| -appendage_apex = [39, 29, 98] |
109 |
| -ra = simulator.compute_right_atrial_fiber(appendage_apex) |
| 114 | +ra = simulator.compute_right_atrial_fiber(appendage=right_atrium_appendage_coordinates) |
110 | 115 |
|
111 | 116 | ###############################################################################
|
112 | 117 | # .. note::
|
|
150 | 155 | mesh = ra.ctp()
|
151 | 156 | streamlines = mesh.streamlines(vectors="e_l", source_radius=50, n_points=5000)
|
152 | 157 | tubes = streamlines.tube()
|
153 |
| -plotter.add_mesh(mesh, opacity=0.5, color="white") |
154 |
| -plotter.add_mesh(tubes, color="red") |
| 158 | +plotter.add_mesh(mesh, opacity=0.5, color="white", label="myocardium") |
| 159 | +plotter.add_mesh(tubes, color="red", label="fibers") |
| 160 | +plotter.add_mesh( |
| 161 | + pv.PolyData(right_atrium_appendage_coordinates), |
| 162 | + color="blue", |
| 163 | + point_size=20, |
| 164 | + render_points_as_spheres=True, |
| 165 | + label="right atrium appendage", |
| 166 | +) |
| 167 | +plotter.add_legend() |
155 | 168 | plotter.show()
|
156 | 169 |
|
157 | 170 | ###############################################################################
|
|
0 commit comments