创建了一个箭头,默认箭头是朝上的。修改让点云按照X轴旋转180.
GlueAWidthMaxPos = o3d.geometry.TriangleMesh.create_arrow(cylinder_radius=2.0,
cone_radius=3.5,
cylinder_height=5.0,
cone_height=4.0,
resolution=20,
cylinder_split=4,
cone_split=1)
GlueAWidthMaxPos.rotate(GlueAWidthMaxPos.get_rotation_matrix_from_xyz((np.pi,0,0)), center=(0,0,0))
效果如下图