MCPcopy Create free account
hub / github.com/JeremyBYU/polylidar / callback

Function callback

examples/python/for_paper/polygon_example.py:198–208  ·  view source on GitHub ↗
(alg_name, execution_time,mesh=None)

Source from the content-addressed store, hash-verified

196 callback(polylidar_3d_alg_name, time_polylidar3D, mesh_3d_polylidar)
197
198def callback(alg_name, execution_time,mesh=None):
199 axis_frame = o3d.geometry.TriangleMesh.create_coordinate_frame(size=0.2)
200 axis_frame.translate([0, 0.8, -0.7])
201 grid_ls = construct_grid(size=2, n=20, plane_offset=-0.8, translate=[0, 1.0, 0.0])
202 logging.info("%s took (ms): %.2f", alg_name, execution_time)
203 if mesh:
204 if isinstance(mesh, list):
205 o3d.visualization.draw_geometries(
206 [*mesh, axis_frame], width=600, height=500)
207 else:
208 o3d.visualization.draw_geometries([mesh, axis_frame], width=600, height=500)
209
210def main():
211 axis_frame = o3d.geometry.TriangleMesh.create_coordinate_frame(size=0.2)

Callers 1

run_testFunction · 0.70

Calls 1

construct_gridFunction · 0.90

Tested by

no test coverage detected