parameters: (vis)
docstring: Add a small 3D axis on Open3D Visualizer
docstring_summary: Add a small 3D axis on Open3D Visualizer
docstring_tokens: Add a small 3D axis on Open3D Visualizer
function: def add_open3d_axis(vis):
      """Add a small 3D axis on Open3D Visualizer"""
      axis = o3d.geometry.LineSet()
      axis.points = o3d.utility.Vector3dVector(np.array([
          [0.0, 0.0, 0.0],
          [1.0, 0.0, 0.0],
          [0.0, 1.0, 0.0],
          [0.0, 0.0, 1.0]]))
      axis.lines = o3d.utility.Vector2iVector(np.array([
          [0, 1],
          [0, 2],
          [0, 3]]))
      axis.colors = o3d.utility.Vector3dVector(np.array([
          [1.0, 0.0, 0.0],
          [0.0, 1.0, 0.0],
          [0.0, 0.0, 1.0]]))
      vis.add_geometry(axis)
function_tokens: def add_open3d_axis ( vis ) : axis = o3d . geometry . LineSet ( ) axis . points = o3d . utility . Vector3dVector ( np . array ( [ [ 0.0 , 0.0 , 0.0 ] , [ 1.0 , 0.0 , 0.0 ] , [ 0.0 , 1.0 , 0.0 ] , [ 0.0 , 0.0 , 1.0 ] ] ) ) axis . lines = o3d . utility . Vector2iVector ( np . array ( [ [ 0 , 1 ] , [ 0 , 2 ] , [ 0 , 3 ] ] ) ) axis . colors = o3d . utility . Vector3dVector ( np . array ( [ [ 1.0 , 0.0 , 0.0 ] , [ 0.0 , 1.0 , 0.0 ] , [ 0.0 , 0.0 , 1.0 ] ] ) ) vis . add_geometry ( axis )