ClassesClassesClassesClasses | | | | Operators

connect_and_holesconnect_and_holesConnectAndHolesconnect_and_holesConnectAndHolesConnectAndHoles (Operator)

Name

connect_and_holesconnect_and_holesConnectAndHolesconnect_and_holesConnectAndHolesConnectAndHoles — Number of connection components and holes

Signature

connect_and_holes(Regions : : : NumConnected, NumHoles)

Herror connect_and_holes(const Hobject Regions, Hlong* NumConnected, Hlong* NumHoles)

Herror T_connect_and_holes(const Hobject Regions, Htuple* NumConnected, Htuple* NumHoles)

Herror connect_and_holes(Hobject Regions, Hlong* NumConnected, Hlong* NumHoles)

Herror connect_and_holes(Hobject Regions, HTuple* NumConnected, HTuple* NumHoles)

Hlong HRegion::ConnectAndHoles(Hlong* NumHoles) const

HTuple HRegionArray::ConnectAndHoles(HTuple* NumHoles) const

void ConnectAndHoles(const HObject& Regions, HTuple* NumConnected, HTuple* NumHoles)

HTuple HRegion::ConnectAndHoles(HTuple* NumHoles) const

Hlong HRegion::ConnectAndHoles(Hlong* NumHoles) const

void HOperatorSetX.ConnectAndHoles(
[in] IHUntypedObjectX* Regions, [out] VARIANT* NumConnected, [out] VARIANT* NumHoles)

VARIANT HRegionX.ConnectAndHoles([out] VARIANT* NumHoles)

static void HOperatorSet.ConnectAndHoles(HObject regions, out HTuple numConnected, out HTuple numHoles)

HTuple HRegion.ConnectAndHoles(out HTuple numHoles)

int HRegion.ConnectAndHoles(out int numHoles)

Description

The operator connect_and_holesconnect_and_holesConnectAndHolesconnect_and_holesConnectAndHolesConnectAndHoles calculates the number of connection components and the number of holes of each region of RegionsRegionsRegionsRegionsRegionsregions.

If more than one region is passed the numerical values of the output control parameters NumConnectedNumConnectedNumConnectedNumConnectedNumConnectednumConnected and NumHolesNumHolesNumHolesNumHolesNumHolesnumHoles are each stored in a tuple, the position of a value in the tuple corresponding to the position of the region in the input tuple.

Parallelization

Parameters

RegionsRegionsRegionsRegionsRegionsregions (input_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject

Region(s) to be examined.

NumConnectedNumConnectedNumConnectedNumConnectedNumConnectednumConnected (output_control)  integer(-array) HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Number of connection components of a region.

NumHolesNumHolesNumHolesNumHolesNumHolesnumHoles (output_control)  integer(-array) HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Number of holes of a region.

Result

The operator connect_and_holesconnect_and_holesConnectAndHolesconnect_and_holesConnectAndHolesConnectAndHoles returns the value 2 (H_MSG_TRUE) if the input is not empty. The behavior in case of empty input (no input regions available) is set via the operator set_system('no_object_result',<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>). The behavior in case of empty region (the region is the empty set) is set via set_system('empty_region_result',<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>).

Possible Predecessors

thresholdthresholdThresholdthresholdThresholdThreshold, regiongrowingregiongrowingRegiongrowingregiongrowingRegiongrowingRegiongrowing, connectionconnectionConnectionconnectionConnectionConnection

Alternatives

euler_numbereuler_numberEulerNumbereuler_numberEulerNumberEulerNumber

See also

connectionconnectionConnectionconnectionConnectionConnection, fill_upfill_upFillUpfill_upFillUpFillUp, fill_up_shapefill_up_shapeFillUpShapefill_up_shapeFillUpShapeFillUpShape, union1union1Union1union1Union1Union1

Module

Foundation


ClassesClassesClassesClasses | | | | Operators