intersection intersection Intersection Intersection intersection (算子)
名称
intersection intersection Intersection Intersection intersection — 计算两个区域的交集。
签名
描述
intersection intersection Intersection Intersection Intersection intersection calculates the intersection of the regions
in Region1 Region1 Region1 Region1 region1 region_1 with the regions in Region2 Region2 Region2 Region2 region2 region_2 . Each
region in Region1 Region1 Region1 Region1 region1 region_1 is intersected with all regions in
Region2 Region2 Region2 Region2 region2 region_2 . That is, internally all regions of Region2 Region2 Region2 Region2 region2 region_2
are united to a single region before the individual regions of
Region1 Region1 Region1 Region1 region1 region_1 are intersected with the united region. The order of
regions in RegionIntersection RegionIntersection RegionIntersection RegionIntersection regionIntersection region_intersection is identical to the order
of regions in Region1 Region1 Region1 Region1 region1 region_1 。
注意
Empty input regions are permitted. Because empty result regions are
possible, the system flag 'store_empty_region' "store_empty_region" "store_empty_region" "store_empty_region" "store_empty_region" "store_empty_region" should be
set appropriately.
执行信息
多线程类型:可重入(与非独占算子并行运行)。
多线程作用域:全局(可从任何线程调用)。
未采用并行化处理。
参数
Region1 Region1 Region1 Region1 region1 region_1 (输入对象) region(-array) → object HRegion HObject HRegion Hobject
Regions to be intersected with all regions in Region2.
Region2 Region2 Region2 Region2 region2 region_2 (输入对象) region(-array) → object HRegion HObject HRegion Hobject
Regions with which Region1 is intersected.
RegionIntersection RegionIntersection RegionIntersection RegionIntersection regionIntersection region_intersection (输出对象) region(-array) → object HRegion HObject HRegion Hobject *
Result of the intersection.
元素数量:
RegionIntersection <= Region1
复杂度
Let N be the number of regions in Region1 Region1 Region1 Region1 region1 region_1 ,
be
their average area, and
be the total area of all regions in
Region2 Region2 Region2 Region2 region2 region_2 . Then the runtime complexity is
。
结果
intersection intersection Intersection Intersection Intersection intersection 始终返回 2 ( H_MSG_TRUE )。当输入为空(未指定区域)时则可设置行为通过 set_system('no_object_result',<Result>) set_system("no_object_result",<Result>) SetSystem("no_object_result",<Result>) SetSystem("no_object_result",<Result>) SetSystem("no_object_result",<Result>) set_system("no_object_result",<Result>) 以及输入区域为空时可设置行为通过 set_system('empty_region_result',<Result>) set_system("empty_region_result",<Result>) SetSystem("empty_region_result",<Result>) SetSystem("empty_region_result",<Result>) SetSystem("empty_region_result",<Result>) set_system("empty_region_result",<Result>) 。如有必要,则抛出异常。
可能的前趋
threshold threshold Threshold Threshold Threshold threshold ,
connection connection Connection Connection Connection connection ,
regiongrowing regiongrowing Regiongrowing Regiongrowing Regiongrowing regiongrowing ,
pouring pouring Pouring Pouring Pouring pouring
可能的后继
select_shape select_shape SelectShape SelectShape SelectShape select_shape ,
disp_region disp_region DispRegion DispRegion DispRegion disp_region
另见
union1 union1 Union1 Union1 Union1 union1 ,
union2 union2 Union2 Union2 Union2 union2 ,
complement complement Complement Complement Complement complement
模块
基础