intersection_region_contour_xldintersection_region_contour_xldIntersectionRegionContourXldIntersectionRegionContourXldintersection_region_contour_xld (Operator)

Name

intersection_region_contour_xldintersection_region_contour_xldIntersectionRegionContourXldIntersectionRegionContourXldintersection_region_contour_xld — Schneiden einer Kontur mit einer Region.

Signatur

intersection_region_contour_xld(Region, Contour : ContourIntersection : Mode : )

Herror intersection_region_contour_xld(const Hobject Region, const Hobject Contour, Hobject* ContourIntersection, const char* Mode)

Herror T_intersection_region_contour_xld(const Hobject Region, const Hobject Contour, Hobject* ContourIntersection, const Htuple Mode)

void IntersectionRegionContourXld(const HObject& Region, const HObject& Contour, HObject* ContourIntersection, const HTuple& Mode)

HXLDCont HRegion::IntersectionRegionContourXld(const HXLDCont& Contour, const HString& Mode) const

HXLDCont HRegion::IntersectionRegionContourXld(const HXLDCont& Contour, const char* Mode) const

HXLDCont HRegion::IntersectionRegionContourXld(const HXLDCont& Contour, const wchar_t* Mode) const   ( Nur Windows)

HXLDCont HXLDCont::IntersectionRegionContourXld(const HRegion& Region, const HString& Mode) const

HXLDCont HXLDCont::IntersectionRegionContourXld(const HRegion& Region, const char* Mode) const

HXLDCont HXLDCont::IntersectionRegionContourXld(const HRegion& Region, const wchar_t* Mode) const   ( Nur Windows)

static void HOperatorSet.IntersectionRegionContourXld(HObject region, HObject contour, out HObject contourIntersection, HTuple mode)

HXLDCont HRegion.IntersectionRegionContourXld(HXLDCont contour, string mode)

HXLDCont HXLDCont.IntersectionRegionContourXld(HRegion region, string mode)

def intersection_region_contour_xld(region: HObject, contour: HObject, mode: str) -> HObject

Beschreibung

Der Operator intersection_region_contour_xldintersection_region_contour_xldIntersectionRegionContourXldIntersectionRegionContourXldintersection_region_contour_xld schneidet die Kontur ContourContourContourcontourcontour mit der Region RegionRegionRegionregionregion und gibt die Teile der Kontur, die innerhalb der Region sind, in ContourIntersectionContourIntersectionContourIntersectioncontourIntersectioncontour_intersection zurück.

Mit ModeModeModemodemode kann die Art der Schnittbestimmung angegeben werden. Die folgenden Werte sind möglich:

'lines'"lines""lines""lines""lines" (Default):

Im Modus 'lines'"lines""lines""lines""lines" werden die einzelnen Liniensegmente der Eingabekontur subpixelgenau mit der Region geschnitten. Dieser Modus ist in der Regel langsamer als 'points'"points""points""points""points", aber genauer. Liniensegmente, die nur teilweise innerhalb der Region liegen, werden gegebenenfalls in mehrere Teilsegmente zerlegt.

'points'"points""points""points""points":

Im Modus 'points'"points""points""points""points" werden stets vollständige Liniensegmente von ContourContourContourcontourcontour betrachtet. Wenn sowohl der Start- als auch der Endpunkt eines Liniensegments innerhalb der Region ist, wird das Liniensegment in die Ausgabe übernommen. Dieser Modus ist schneller als 'lines'"lines""lines""lines""lines", allerdings auch ungenauer, insbesondere, wenn die Kontur nur grob abgetastet ist. So wird ignoriert, falls ein Liniensegment zwischen Start- und Endpunkt die Region verlässt. Ebenfalls kann ein Liniensegment zwar größtenteils innerhalb der Region liegen, aber trotzdem nicht in die Ausgabe übernommen werden, wenn der Start- oder Endpunkt nicht in der Region liegen.

( 1) ( 2)
Ergebnis für die Modi 'lines'"lines""lines""lines""lines" (1) und 'points'"points""points""points""points" beim Schneiden einer Kontur mit einer Region (grün). Die roten Abschnitte der Kontur werden als Ergebnis zurückgegeben.

Ausführungsinformationen

Parameter

RegionRegionRegionregionregion (input_object)  region objectHRegionHObjectHObjectHobject

Eingaberegion.

ContourContourContourcontourcontour (input_object)  xld_cont-array objectHXLDContHObjectHObjectHobject

Eingabekonturen.

ContourIntersectionContourIntersectionContourIntersectioncontourIntersectioncontour_intersection (output_object)  xld_cont-array objectHXLDContHObjectHObjectHobject *

Selektierter Teil der Eingabekontur.

ModeModeModemodemode (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Zu verwendender Modus.

Default: 'lines' "lines" "lines" "lines" "lines"

Werteliste: 'lines'"lines""lines""lines""lines", 'points'"points""points""points""points"

Vorgänger

thresholdthresholdThresholdThresholdthreshold, gen_contours_skeleton_xldgen_contours_skeleton_xldGenContoursSkeletonXldGenContoursSkeletonXldgen_contours_skeleton_xld, lines_gausslines_gaussLinesGaussLinesGausslines_gauss, lines_facetlines_facetLinesFacetLinesFacetlines_facet, edges_sub_pixedges_sub_pixEdgesSubPixEdgesSubPixedges_sub_pix, gen_contour_region_xldgen_contour_region_xldGenContourRegionXldGenContourRegionXldgen_contour_region_xld, zero_crossing_sub_pixzero_crossing_sub_pixZeroCrossingSubPixZeroCrossingSubPixzero_crossing_sub_pix, threshold_sub_pixthreshold_sub_pixThresholdSubPixThresholdSubPixthreshold_sub_pix

Alternativen

intersection_closed_contours_xldintersection_closed_contours_xldIntersectionClosedContoursXldIntersectionClosedContoursXldintersection_closed_contours_xld, intersection_closed_polygons_xldintersection_closed_polygons_xldIntersectionClosedPolygonsXldIntersectionClosedPolygonsXldintersection_closed_polygons_xld

Siehe auch

intersection_closed_contours_xldintersection_closed_contours_xldIntersectionClosedContoursXldIntersectionClosedContoursXldintersection_closed_contours_xld, intersection_closed_polygons_xldintersection_closed_polygons_xldIntersectionClosedPolygonsXldIntersectionClosedPolygonsXldintersection_closed_polygons_xld, gen_region_contour_xldgen_region_contour_xldGenRegionContourXldGenRegionContourXldgen_region_contour_xld

Modul

Foundation