intersection intersection Intersection Intersection (Operator)
Name
intersection intersection Intersection Intersection
— Calculate the intersection of two regions.
Signature
Description
intersection intersection Intersection Intersection Intersection
calculates the intersection of the regions
in Region1 Region1 Region1 Region1 region1
with the regions in Region2 Region2 Region2 Region2 region2
. Each
region in Region1 Region1 Region1 Region1 region1
is intersected with all regions in
Region2 Region2 Region2 Region2 region2
. That is, internally all regions of Region2 Region2 Region2 Region2 region2
are united to a single region before the individual regions of
Region1 Region1 Region1 Region1 region1
are intersected with the united region. The order of
regions in RegionIntersection RegionIntersection RegionIntersection RegionIntersection regionIntersection
is identical to the order
of regions in Region1 Region1 Region1 Region1 region1
.
Attention
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" should be
set appropriately.
Execution Information
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
Processed without parallelization.
Parameters
Region1 Region1 Region1 Region1 region1
(input_object) region(-array) →
object HRegion HRegion Hobject
Regions to be intersected with all regions in Region2.
Region2 Region2 Region2 Region2 region2
(input_object) region(-array) →
object HRegion HRegion Hobject
Regions with which Region1 is intersected.
RegionIntersection RegionIntersection RegionIntersection RegionIntersection regionIntersection
(output_object) region(-array) →
object HRegion HRegion Hobject *
Result of the intersection.
Number of elements: RegionIntersection <= Region1
Complexity
Let N be the number of regions in Region1 Region1 Region1 Region1 region1
,
be
their average area, and
be the total area of all regions in
Region2 Region2 Region2 Region2 region2
. Then the runtime complexity is
.
Result
intersection intersection Intersection Intersection Intersection
always returns 2 (H_MSG_TRUE). The behavior in case of
empty input (no regions given) can be set via
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>)
and the behavior in case of an empty input region via
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>)
.
If necessary, an exception is raised.
Possible Predecessors
threshold threshold Threshold Threshold Threshold
,
connection connection Connection Connection Connection
,
regiongrowing regiongrowing Regiongrowing Regiongrowing Regiongrowing
,
pouring pouring Pouring Pouring Pouring
Possible Successors
select_shape select_shape SelectShape SelectShape SelectShape
,
disp_region disp_region DispRegion DispRegion DispRegion
See also
union1 union1 Union1 Union1 Union1
,
union2 union2 Union2 Union2 Union2
,
complement complement Complement Complement Complement
Module
Foundation