MCPcopy Index your code
hub / github.com/SAMMiCA/ChangeSim / draw_points3D

Function draw_points3D

script/utils/visualization.py:212–225  ·  view source on GitHub ↗
(points3D, color=None)

Source from the content-addressed store, hash-verified

210
211
212def draw_points3D(points3D, color=None):
213 # color: default value
214 if color is None:
215 color = [0.8, 0.2, 0.8]
216
217 geometries = []
218 for pt in points3D:
219 sphere = open3d.geometry.TriangleMesh.create_sphere(radius=0.01,
220 resolution=20)
221 sphere.translate(pt)
222 sphere.paint_uniform_color(np.array(color))
223 geometries.append(sphere)
224
225 return geometries

Callers 1

draw_points3DMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected