Skip to content

Commit 4d460a2

Browse files
committed
falling back to non-parallel tube generation and unbalanced model unioning
1 parent 4024ae3 commit 4d460a2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

svv/tree/export/export_solid.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def generate_polylines(xyz, r, num=1000):
459459
return polylines
460460

461461

462-
def generate_tube(polyline, hsize=None, radius_based=False):
462+
def generate_tube(polyline, hsize=None, radius_based=True):
463463
"""
464464
This function generates a tube from a given polyline representing a single vessel of a
465465
vascular object (tree or forest).
@@ -729,8 +729,10 @@ def build_watertight_solid(tree, cap_resolution=40):
729729
"""
730730
xyz, r, _, _, branches, _ = get_interpolated_sv_data(tree.data)
731731
lines = generate_polylines(xyz, r)
732-
tubes = generate_tubes_parallel(lines, radius_based=True)
733-
model = union_tubes_balanced(tubes, lines, cap_resolution=cap_resolution)
732+
tubes = generate_tubes(lines)
733+
model = union_tubes(tubes, lines, cap_resolution=cap_resolution)
734+
#tubes = generate_tubes_parallel(lines, radius_based=True)
735+
#model = union_tubes_balanced(tubes, lines, cap_resolution=cap_resolution)
734736
# Remove poor quality elements and repair the mesh.
735737
cell_quality = model.compute_cell_quality(quality_measure='scaled_jacobian')
736738
keep = cell_quality.cell_data["CellQuality"] > 0.1

0 commit comments

Comments
 (0)