if ((Index+Distance) > Length)
line_position (Row[Index], Col[Index], Row[Length-1], Col[Length-1], RowCenter, ColCenter, Length1, Phi)
distance_pp (Row[Index], Col[Index], Row[Length-1], Col[Length-1], Distance1)
else
line_position (Row[Index], Col[Index], Row[Index+Distance], Col[Index+Distance], RowCenter, ColCenter, Length1, Phi)
distance_pp (Row[Index], Col[Index], Row[Index+Distance], Col[Index+Distance], Distance1)
endif
*根据计算出的角度与宽度,生成对应的矩形
gen_rectangle2 (Rectangle, RowCenter, ColCenter, Phi + rad(90), 50, Distance1/2)
*每次生成的矩形对象放入对象数组中
concat_obj (EmptyObject, Rectangle, EmptyObject)
距离变换 Distance Transformation
2024-04-23 06:16:03 32 阅读