gen_region_polygon_xldgen_region_polygon_xldGenRegionPolygonXldGenRegionPolygonXldgen_region_polygon_xld (Operator)

Name

gen_region_polygon_xldgen_region_polygon_xldGenRegionPolygonXldGenRegionPolygonXldgen_region_polygon_xld — Create a region from an XLD polygon.

Signature

gen_region_polygon_xld(Polygon : Region : Mode : )

Herror gen_region_polygon_xld(const Hobject Polygon, Hobject* Region, const char* Mode)

Herror T_gen_region_polygon_xld(const Hobject Polygon, Hobject* Region, const Htuple Mode)

void GenRegionPolygonXld(const HObject& Polygon, HObject* Region, const HTuple& Mode)

HRegion HXLDPoly::GenRegionPolygonXld(const HString& Mode) const

HRegion HXLDPoly::GenRegionPolygonXld(const char* Mode) const

HRegion HXLDPoly::GenRegionPolygonXld(const wchar_t* Mode) const   ( Windows only)

static void HOperatorSet.GenRegionPolygonXld(HObject polygon, out HObject region, HTuple mode)

HRegion HXLDPoly.GenRegionPolygonXld(string mode)

def gen_region_polygon_xld(polygon: HObject, mode: str) -> HObject

Description

gen_region_polygon_xldgen_region_polygon_xldGenRegionPolygonXldGenRegionPolygonXldgen_region_polygon_xld creates a region RegionRegionRegionregionregion from a subpixel XLD polygon PolygonPolygonPolygonpolygonpolygon. The polygon is sampled according to the Bresenham algorithm and influenced by the parameter 'neighborhood'"neighborhood""neighborhood""neighborhood""neighborhood" of the operator set_systemset_systemSetSystemSetSystemset_system. Open polygons are closed before converting them to regions. Finally, the parameter ModeModeModemodemode defines whether the region is filled up ('filled'"filled""filled""filled""filled") or returned by its contour ('margin'"margin""margin""margin""margin").

Execution Information

Parameters

PolygonPolygonPolygonpolygonpolygon (input_object)  xld_poly(-array) objectHXLDPolyHObjectHObjectHobject

Input polygon(s).

RegionRegionRegionregionregion (output_object)  region(-array) objectHRegionHObjectHObjectHobject *

Created region(s).

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

Fill mode of the region(s).

Default: 'filled' "filled" "filled" "filled" "filled"

Suggested values: 'filled'"filled""filled""filled""filled", 'margin'"margin""margin""margin""margin"

Possible Predecessors

gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldgen_polygons_xld

Alternatives

gen_region_polygongen_region_polygonGenRegionPolygonGenRegionPolygongen_region_polygon, gen_region_contour_xldgen_region_contour_xldGenRegionContourXldGenRegionContourXldgen_region_contour_xld

See also

set_systemset_systemSetSystemSetSystemset_system

Module

Foundation