difference difference Difference Difference difference (算子名称)
名称
difference difference Difference Difference difference
— Calculate the difference of two regions.
参数签名
def difference (区域 : HObject, sub : HObject) -> HObject
描述
difference difference Difference Difference Difference difference
calculates the set-theoretic difference of
two regions:
(Regions in Region) - (Regions in Sub)
The resulting region is defined as the input region
(区域 区域 区域 区域 区域 区域
) with all points from Sub Sub Sub Sub sub sub
removed.
Note that, internally, all regions of Sub Sub Sub Sub sub sub
are united to
a single region before the differences between the individual regions of
区域 区域 区域 区域 区域 区域
and the united region are calculated.
注意
Empty regions are valid for both parameters. On output, empty
regions may result. The value of the system flag
'store_empty_region' "store_empty_region" "store_empty_region" "store_empty_region" "store_empty_region" "store_empty_region" determines the behavior in this
case.
运行信息
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
Processed without parallelization.
参数表
区域 区域 区域 区域 区域 区域
(input_object) region(-array) →
object HRegion HObject HRegion Hobject
Regions to be processed.
Sub Sub Sub Sub sub sub
(input_object) region(-array) →
object HRegion HObject HRegion Hobject
The union of these regions is subtracted from Region.
RegionDifference RegionDifference RegionDifference RegionDifference regionDifference region_difference
(output_object) region(-array) →
object HRegion HObject HRegion Hobject *
Resulting region.
例程 (HDevelop)
* provides the region X without the points in Y
difference(X,Y,RegionDifference)
例程 (C)
/* provides the region X without the points in Y */
difference(X,Y,&RegionDifference);
例程 (HDevelop)
* provides the region X without the points in Y
difference(X,Y,RegionDifference)
例程 (HDevelop)
* provides the region X without the points in Y
difference(X,Y,RegionDifference)
例程 (HDevelop)
* provides the region X without the points in Y
difference(X,Y,RegionDifference)
Complexity
Let
be the number of regions,
be their average area, and
be the total area of all regions in Sub Sub Sub Sub sub sub
. Then
the runtime complexity is
.
结果
difference difference Difference Difference Difference difference
always returns the value 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>) set_system("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>) set_system("empty_region_result",<Result>)
.
If necessary, an exception is raised.
可能的前置算子
threshold threshold Threshold Threshold Threshold threshold
,
connection connection Connection Connection Connection connection
,
regiongrowing regiongrowing Regiongrowing Regiongrowing Regiongrowing regiongrowing
,
pouring pouring Pouring Pouring Pouring pouring
,
class_ndim_norm class_ndim_norm ClassNdimNorm ClassNdimNorm ClassNdimNorm class_ndim_norm
可能的后置算子
select_shape select_shape SelectShape SelectShape SelectShape select_shape
,
disp_region disp_region DispRegion DispRegion DispRegion disp_region
参考其它
intersection intersection Intersection Intersection Intersection intersection
,
union1 union1 Union1 Union1 Union1 union1
,
union2 union2 Union2 Union2 Union2 union2
,
complement complement Complement Complement Complement complement
,
symm_difference symm_difference SymmDifference SymmDifference SymmDifference symm_difference
模块
Foundation