orientation_points_xld (Operator)----计算点云轮廓或点云多边形的方向

计算点云轮廓或点云多边形的方向(该点云的顺序不会考虑其中)

①如果该XLD与自身相交或者如果自身相交能用一条线把其首尾相连,使用orientation_points_xld 算子,可以使用 test_self_intersection_xld算子测试该XLD能否自身相交

②如果该XLD不与自身相交使用orientation_xld 计算方向



eg:

*检测改轮廓是否可以相交
test_self_intersection_xld (fit_line, 'true', DoesIntersect)
*不同的方式采用不同的方向计算方法
if(DoesIntersect)
    orientation_points_xld (fit_line, Phi)
else
    orientation_xld (fit_line, Phi)
endif

猜你喜欢

转载自blog.csdn.net/qq_22904277/article/details/80647969
今日推荐