differencedifferenceDifferenceDifferencedifference (算子名称)

名称

differencedifferenceDifferenceDifferencedifference — Calculate the difference of two regions.

参数签名

difference(区域, Sub : RegionDifference : : )

Herror difference(const Hobject 区域, const Hobject Sub, Hobject* RegionDifference)

Herror T_difference(const Hobject 区域, const Hobject Sub, Hobject* RegionDifference)

void Difference(const HObject& 区域, const HObject& Sub, HObject* RegionDifference)

HRegion HRegion::Difference(const HRegion& Sub) const

static void HOperatorSet.Difference(HObject 区域, HObject sub, out HObject regionDifference)

HRegion HRegion.Difference(HRegion sub)

def difference(区域: HObject, sub: HObject) -> HObject

描述

differencedifferenceDifferenceDifferenceDifferencedifference 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 SubSubSubSubsubsub removed. Note that, internally, all regions of SubSubSubSubsubsub 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.

运行信息

参数表

区域区域区域区域区域区域 (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Regions to be processed.

SubSubSubSubsubsub (input_object)  region(-array) objectHRegionHObjectHRegionHobject

The union of these regions is subtracted from Region.

RegionDifferenceRegionDifferenceRegionDifferenceRegionDifferenceregionDifferenceregion_difference (output_object)  region(-array) objectHRegionHObjectHRegionHobject *

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 SubSubSubSubsubsub. Then the runtime complexity is .

结果

differencedifferenceDifferenceDifferenceDifferencedifference 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.

可能的前置算子

thresholdthresholdThresholdThresholdThresholdthreshold, connectionconnectionConnectionConnectionConnectionconnection, regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing, pouringpouringPouringPouringPouringpouring, class_ndim_normclass_ndim_normClassNdimNormClassNdimNormClassNdimNormclass_ndim_norm

可能的后置算子

select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region

参考其它

intersectionintersectionIntersectionIntersectionIntersectionintersection, union1union1Union1Union1Union1union1, union2union2Union2Union2Union2union2, complementcomplementComplementComplementComplementcomplement, symm_differencesymm_differenceSymmDifferenceSymmDifferenceSymmDifferencesymm_difference

模块

Foundation