创建了一个箭头,默认箭头是朝上的。修改让点云按照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))
效果如下图


本文介绍了如何在OpenGL中通过`GlueAWidthMaxPos`函数创建一个默认朝上的箭头,并通过旋转矩阵使其沿X轴旋转180度,以实现点云的定向效果。

被折叠的 条评论
为什么被折叠?



