2021SC@SDUSC
open3d
import open3d as o3d
# 绘制箭头
cone = o3d.geometry.TriangleMesh.create_cone(radius=1.0,
height=2.0,
resolution=20,
split=1)
cone.compute_vertex_normals()
cone.paint_uniform_color([0, 1, 0])
print("绘制箭头")
o3d.visualization.draw_geometries([cone])
用cone = o3d.geometry.TriangleMesh.create_cone来绘制圆锥,radius控制其半径,height控制其高度
import open3d as o3d
# 绘制圆柱
mesh_cylinder = o3d.geometry.TriangleMesh.create_cylinder(radius=0.3,
height=4.0)
mesh_cylinder.compute_vertex_normals()
mesh_cylinder.paint_uniform_color([0.1, 0.4, 0.1])
o3d.visualization.draw_geometries([mesh_cyl