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

Function callback

examples/python/basic_mesh.py:159–169  ·  view source on GitHub ↗
(alg_name, execution_time, mesh=None)

Source from the content-addressed store, hash-verified

157
158
159def callback(alg_name, execution_time, mesh=None):
160 axis_frame = o3d.geometry.TriangleMesh.create_coordinate_frame(size=0.2)
161 axis_frame.translate([0, 0.8, -0.7])
162 grid_ls = construct_grid(size=2, n=20, plane_offset=-0.8, translate=[0, 1.0, 0.0])
163 logging.info("%s took (ms): %.2f", alg_name, execution_time)
164 if mesh:
165 if isinstance(mesh, list):
166 o3d.visualization.draw_geometries(
167 [*mesh, axis_frame])
168 else:
169 o3d.visualization.draw_geometries([mesh, axis_frame])
170
171
172def main():

Callers 2

run_testFunction · 0.70
jquery-3.5.1.jsFile · 0.50

Calls 1

construct_gridFunction · 0.90

Tested by

no test coverage detected