Skip to content

Commit bf93f92

Browse files
authored
Merge pull request #37 from meyerls/dev
mod example
2 parents 5ecc210 + aa638ed commit bf93f92

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

example_tree.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,17 @@
1616
lbc = LBC(point_cloud=pcd,
1717
init_contraction=2,
1818
init_attraction=0.5,
19-
down_sample=0.03)
19+
down_sample=0.01)
2020
lbc.extract_skeleton()
2121
lbc.extract_topology()
2222
lbc.visualize()
2323
lbc.show_graph(lbc.skeleton_graph, fig_size=(30, 30))
2424
lbc.show_graph(lbc.topology_graph)
2525
lbc.export_results('./output')
26-
lbc.animate(init_rot=np.asarray([[1, 0, 0], [0, 0, 1], [0, 1, 0]]), steps=500, output='./output_lbc')
26+
lbc.export_results('./output_lbc')
27+
#lbc.animate(init_rot=np.asarray([[1, 0, 0], [0, 0, 1], [0, 1, 0]]), steps=500, output='./output_lbc')
2728
#lbc.animate_contracted_pcd(init_rot=np.asarray([[1, 0, 0], [0, 0, 1], [0, 1, 0]]), steps=300, output='./output')
28-
lbc.animate_topology(init_rot=np.asarray([[1, 0, 0], [0, 0, 1], [0, 1, 0]]), steps=300, output='./output')
29+
#lbc.animate_topology(init_rot=np.asarray([[1, 0, 0], [0, 0, 1], [0, 1, 0]]), steps=300, output='./output_lbc')
2930

3031
# Semantic Laplacian-based Contraction
3132
s_lbc = SLBC(point_cloud={'trunk': pcd_trunk, 'branches': pcd_branch},
@@ -39,6 +40,6 @@
3940
s_lbc.show_graph(s_lbc.skeleton_graph, fig_size=(30, 30))
4041
s_lbc.show_graph(s_lbc.topology_graph)
4142
s_lbc.export_results('./output_slbc')
42-
s_lbc.animate(init_rot=np.asarray([[1, 0, 0], [0, 0, 1], [0, 1, 0]]), steps=500, output='./output')
43+
#s_lbc.animate(init_rot=np.asarray([[1, 0, 0], [0, 0, 1], [0, 1, 0]]), steps=500, output='./output')
4344
#s_lbc.animate_contracted_pcd(init_rot=np.asarray([[1, 0, 0], [0, 0, 1], [0, 1, 0]]), steps=300, output='./output')
44-
s_lbc.animate_topology(init_rot=np.asarray([[1, 0, 0], [0, 0, 1], [0, 1, 0]]), steps=300, output='./output_slbc')
45+
#s_lbc.animate_topology(init_rot=np.asarray([[1, 0, 0], [0, 0, 1], [0, 1, 0]]), steps=300, output='./output_slbc')

0 commit comments

Comments
 (0)