KlassenKlassenKlassenKlassen | | | | Operatoren

partition_rectanglepartition_rectanglePartitionRectanglepartition_rectanglePartitionRectanglePartitionRectangle (Operator)

Name

partition_rectanglepartition_rectanglePartitionRectanglepartition_rectanglePartitionRectanglePartitionRectangle — Aufteilen einer Region in Rechtecke von ungefähr gleicher Größe.

Signatur

partition_rectangle(Region : Partitioned : Width, Height : )

Herror partition_rectangle(const Hobject Region, Hobject* Partitioned, double Width, double Height)

Herror T_partition_rectangle(const Hobject Region, Hobject* Partitioned, const Htuple Width, const Htuple Height)

Herror partition_rectangle(Hobject Region, Hobject* Partitioned, const HTuple& Width, const HTuple& Height)

HRegion HRegion::PartitionRectangle(const HTuple& Width, const HTuple& Height) const

HRegionArray HRegionArray::PartitionRectangle(const HTuple& Width, const HTuple& Height) const

void PartitionRectangle(const HObject& Region, HObject* Partitioned, const HTuple& Width, const HTuple& Height)

HRegion HRegion::PartitionRectangle(double Width, double Height) const

void HOperatorSetX.PartitionRectangle(
[in] IHUntypedObjectX* Region, [out] IHUntypedObjectX*Partitioned, [in] VARIANT Width, [in] VARIANT Height)

IHRegionX* HRegionX.PartitionRectangle(
[in] double Width, [in] double Height)

static void HOperatorSet.PartitionRectangle(HObject region, out HObject partitioned, HTuple width, HTuple height)

HRegion HRegion.PartitionRectangle(double width, double height)

Beschreibung

partition_rectanglepartition_rectanglePartitionRectanglepartition_rectanglePartitionRectanglePartitionRectangle zerlegt die Eingaberegion in Rechtecke der Größe WidthWidthWidthWidthWidthwidth mal HeightHeightHeightHeightHeightheight. Die Rechtecke werden in PartitionedPartitionedPartitionedPartitionedPartitionedpartitioned zurückgeliefert. Die Region wird immer in etwa gleich große Rechtecke zerlegt. Falls dies mit der gewünschten Rechteckgröße nicht möglich ist, werden WidthWidthWidthWidthWidthwidth und HeightHeightHeightHeightHeightheight so angepasst, dass die resultierenden Rechtecke in etwa gleich groß sind. Wenn die Region kleiner als die angegebene Größe ist, bleibt sie unverändert. Eine Zerlegung findet erst statt, wenn die Größe mindestens 1.5 mal so groß ist wie durch die Parameter vorgegeben.

Parallelisierung

Parameter

RegionRegionRegionRegionRegionregion (input_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject

Region die zerlegt werden soll.

PartitionedPartitionedPartitionedPartitionedPartitionedpartitioned (output_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject *

Zerlegte Region.

WidthWidthWidthWidthWidthwidth (input_control)  real HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Breite der einzelnen Rechtecke.

HeightHeightHeightHeightHeightheight (input_control)  real HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Höhe der einzelnen Rechtecke.

Ergebnis

partition_rectanglepartition_rectanglePartitionRectanglepartition_rectanglePartitionRectanglePartitionRectangle liefert normalerweise den Wert 2 (H_MSG_TRUE). Das Verhalten bei leerer Eingabe (keine Eingabebilder vorhanden) lässt sich mittels 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>), das bei leerer Region mit 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>), das bei leerer Ergebnisregion mit set_system('store_empty_region',<'true'/'false'>)set_system("store_empty_region",<"true"/"false">)SetSystem("store_empty_region",<"true"/"false">)set_system("store_empty_region",<"true"/"false">)SetSystem("store_empty_region",<"true"/"false">)SetSystem("store_empty_region",<"true"/"false">) festlegen. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

thresholdthresholdThresholdthresholdThresholdThreshold, connectionconnectionConnectionconnectionConnectionConnection

Alternativen

partition_dynamicpartition_dynamicPartitionDynamicpartition_dynamicPartitionDynamicPartitionDynamic

Siehe auch

intersectionintersectionIntersectionintersectionIntersectionIntersection, smallest_rectangle1smallest_rectangle1SmallestRectangle1smallest_rectangle1SmallestRectangle1SmallestRectangle1, shape_transshape_transShapeTransshape_transShapeTransShapeTrans, clip_regionclip_regionClipRegionclip_regionClipRegionClipRegion

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren