- *如下没有交集的区域求交集后count_obj 计算结果为1
- *union1合并后count_obj 计算结果为1
- *再connection打散后count_obj 计算结果为1
- *有什么办法能去掉这个空使count_obj结果为0吗
- *还是只能通过area_center的结果判断了,哪位大佬帮忙理解一下,感谢
- gen_rectangle1 (Rectangle, 30, 20, 100, 200)
- gen_rectangle1 (Rectangle1, 330, 20, 400, 200)
- intersection (Rectangle, Rectangle1, RegionIntersection)
- count_obj (RegionIntersection, Number1)
- union1 (RegionIntersection, RegionUnion)
- count_obj (RegionUnion, Number2)
- connection (RegionUnion, ConnectedRegions)
- count_obj (ConnectedRegions, Number3)
复制代码
|