Skip to content

gen_contour_polygon_rounded_xldgen_contour_polygon_rounded_xldGenContourPolygonRoundedXldGenContourPolygonRoundedXldgen_contour_polygon_rounded_xldT_gen_contour_polygon_rounded_xld🔗

Short description🔗

gen_contour_polygon_rounded_xldgen_contour_polygon_rounded_xldGenContourPolygonRoundedXldGenContourPolygonRoundedXldgen_contour_polygon_rounded_xldT_gen_contour_polygon_rounded_xld — Generate an XLD contour with rounded corners from a polygon (given as tuples).

Signature🔗

gen_contour_polygon_rounded_xld( out xld_cont Contour, coordinates.y Row, coordinates.x Col, number Radius, number SamplingInterval )gen_contour_polygon_rounded_xld( : Contour : Row, Col, Radius, SamplingInterval : )void GenContourPolygonRoundedXld( HObject* Contour, const HTuple& Row, const HTuple& Col, const HTuple& Radius, const HTuple& SamplingInterval )static void HOperatorSet.GenContourPolygonRoundedXld( out HObject contour, HTuple row, HTuple col, HTuple radius, HTuple samplingInterval )def gen_contour_polygon_rounded_xld( row: Sequence[Union[float, int]], col: Sequence[Union[float, int]], radius: Sequence[Union[float, int]], sampling_interval: Union[float, int] ) -> HObject

Herror T_gen_contour_polygon_rounded_xld( Hobject* Contour, const Htuple Row, const Htuple Col, const Htuple Radius, const Htuple SamplingInterval )

void HXLDCont::GenContourPolygonRoundedXld( const HTuple& Row, const HTuple& Col, const HTuple& Radius, const HTuple& SamplingInterval )

void HXLDCont::GenContourPolygonRoundedXld( const HTuple& Row, const HTuple& Col, const HTuple& Radius, double SamplingInterval )

void HXLDCont.GenContourPolygonRoundedXld( HTuple row, HTuple col, HTuple radius, HTuple samplingInterval )

void HXLDCont.GenContourPolygonRoundedXld( HTuple row, HTuple col, HTuple radius, double samplingInterval )

Description🔗

gen_contour_polygon_rounded_xldGenContourPolygonRoundedXld generates an XLD contour Contourcontourcontour with rounded corners from a polygon given in the tuples Rowrowrow and Colcolcol. The rounded corners are created in form of arcs defined by Radiusradiusradius. For every specified point of the polygon there must be a corresponding rounding radius defined. In case of a closed polygon the first and the last point have to be defined identical with the radii of these points being equal. In contrast, the radii of the first and last point of open polygons are ignored. Finally, the SamplingIntervalsamplingIntervalsampling_interval parameter defines the distance of the control points of the formed contour Contourcontourcontour.

Execution information🔗

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🔗

Contourcontourcontour (output_object) xld_cont → objectobjectHObjectHXLDContHObjectHobject *

Resulting contour.

Rowrowrow (input_control) coordinates.y-array → (real / integer)(real / integer)HTuple (double / Hlong)HTuple (double / int / long)Sequence[Union[float, int]]Htuple (double / Hlong)

Row coordinates of the polygon.

Default: [20, 80, 80, 20, 20][20, 80, 80, 20, 20]
Suggested values: 0, 1, 2, 3, 4, 5, 10, 20, 50, 100, 200, 5000, 1, 2, 3, 4, 5, 10, 20, 50, 100, 200, 500

Colcolcol (input_control) coordinates.x-array → (real / integer)(real / integer)HTuple (double / Hlong)HTuple (double / int / long)Sequence[Union[float, int]]Htuple (double / Hlong)

Column coordinates of the polygon.

Default: [20, 20, 80, 80, 20][20, 20, 80, 80, 20]
Suggested values: 0, 1, 2, 3, 4, 5, 10, 20, 50, 100, 200, 5000, 1, 2, 3, 4, 5, 10, 20, 50, 100, 200, 500

Radiusradiusradius (input_control) number-array → (real / integer)(real / integer)HTuple (double / Hlong)HTuple (double / int / long)Sequence[Union[float, int]]Htuple (double / Hlong)

Radii of the rounded corners.

Default: [20, 20, 20, 20, 20][20, 20, 20, 20, 20]
Suggested values: 0, 1, 2, 5, 10, 20, 500, 1, 2, 5, 10, 20, 50

SamplingIntervalsamplingIntervalsampling_interval (input_control) number → (real / integer)(real / integer)HTuple (double / Hlong)HTuple (double / int / long)Union[float, int]Htuple (double / Hlong)

Distance of the samples.

Default: 1.01.0
Suggested values: 0.5, 1.0, 2.0, 5.00.5, 1.0, 2.0, 5.0

Combinations with other operators🔗

Combinations

Possible predecessors

get_region_contourGetRegionContour

Possible successors

smooth_contours_xldSmoothContoursXld, gen_polygons_xldGenPolygonsXld

See also

gen_contour_polygon_xldGenContourPolygonXld, gen_contours_skeleton_xldGenContoursSkeletonXld

Module🔗

Foundation