gen_region_polygon_xldgen_region_polygon_xldGenRegionPolygonXldGenRegionPolygonXld (Operator)
Name
gen_region_polygon_xldgen_region_polygon_xldGenRegionPolygonXldGenRegionPolygonXld
— Create a region from an XLD polygon.
Signature
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)
Description
gen_region_polygon_xldgen_region_polygon_xldGenRegionPolygonXldGenRegionPolygonXldGenRegionPolygonXld
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_systemSetSystemSetSystemSetSystem
. 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
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
PolygonPolygonPolygonPolygonpolygon
(input_object) xld_poly(-array) →
objectHXLDPolyHXLDPolyHobject
Input polygon(s).
RegionRegionRegionRegionregion
(output_object) region(-array) →
objectHRegionHRegionHobject *
Created region(s).
ModeModeModeModemode
(input_control) string →
HTupleHTupleHtuple (string) (string) (HString) (char*)
Fill mode of the region(s).
Default value:
'filled'
"filled"
"filled"
"filled"
"filled"
Suggested values: 'filled'"filled""filled""filled""filled", 'margin'"margin""margin""margin""margin"
Possible Predecessors
gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldGenPolygonsXld
Alternatives
gen_region_polygongen_region_polygonGenRegionPolygonGenRegionPolygonGenRegionPolygon
,
gen_region_contour_xldgen_region_contour_xldGenRegionContourXldGenRegionContourXldGenRegionContourXld
See also
set_systemset_systemSetSystemSetSystemSetSystem
Module
Foundation