Spaces:
Sleeping
Sleeping
added simple if condition to fix the issue of unmatching and front and back endografts
Browse files- endograft_generation.py +3 -0
endograft_generation.py
CHANGED
|
@@ -137,6 +137,9 @@ def estimate_stretch_factor(centerline, arc_lengths, frames, distance, radial_ve
|
|
| 137 |
# Fabric Component
|
| 138 |
def create_fabric(centerline, frames, start_position, length, diameter, start_amplitude_pp=2.0, waves=8, phase_angle=0.0):
|
| 139 |
|
|
|
|
|
|
|
|
|
|
| 140 |
arc_lengths = arc_length(centerline)
|
| 141 |
phase_rad = np.radians(phase_angle)
|
| 142 |
|
|
|
|
| 137 |
# Fabric Component
|
| 138 |
def create_fabric(centerline, frames, start_position, length, diameter, start_amplitude_pp=2.0, waves=8, phase_angle=0.0):
|
| 139 |
|
| 140 |
+
if length <= 0:
|
| 141 |
+
return vtk.vtkPolyData()
|
| 142 |
+
|
| 143 |
arc_lengths = arc_length(centerline)
|
| 144 |
phase_rad = np.radians(phase_angle)
|
| 145 |
|