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)
01-26
1818
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
01-13
1581
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-09
1105
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)