Operator Reference

split_contours_xldsplit_contours_xldSplitContoursXldSplitContoursXldsplit_contours_xld (Operator)

split_contours_xldsplit_contours_xldSplitContoursXldSplitContoursXldsplit_contours_xld — Split XLD contours at dominant points.

Signature

split_contours_xld(Polygons : Contours : Mode, Weight, Smooth : )

Herror split_contours_xld(const Hobject Polygons, Hobject* Contours, const char* Mode, const Hlong Weight, const Hlong Smooth)

Herror T_split_contours_xld(const Hobject Polygons, Hobject* Contours, const Htuple Mode, const Htuple Weight, const Htuple Smooth)

void SplitContoursXld(const HObject& Polygons, HObject* Contours, const HTuple& Mode, const HTuple& Weight, const HTuple& Smooth)

HXLDCont HXLDPoly::SplitContoursXld(const HString& Mode, Hlong Weight, Hlong Smooth) const

HXLDCont HXLDPoly::SplitContoursXld(const char* Mode, Hlong Weight, Hlong Smooth) const

HXLDCont HXLDPoly::SplitContoursXld(const wchar_t* Mode, Hlong Weight, Hlong Smooth) const   ( Windows only)

static void HOperatorSet.SplitContoursXld(HObject polygons, out HObject contours, HTuple mode, HTuple weight, HTuple smooth)

HXLDCont HXLDPoly.SplitContoursXld(string mode, int weight, int smooth)

def split_contours_xld(polygons: HObject, mode: str, weight: int, smooth: int) -> HObject

Description

split_contours_xldsplit_contours_xldSplitContoursXldSplitContoursXldsplit_contours_xld splits the contours which were used to generate the polygons PolygonsPolygonsPolygonspolygonspolygons at prominent points. If the mode 'polygon'"polygon""polygon""polygon""polygon" is selected, the contours are split at the polygons' control points. In mode 'dominant'"dominant""dominant""dominant""dominant", they are split at dominant points, i.e., at points for which the calculated change of direction is larger than the (empirically determined) threshold , and for which in the (empirically determined) neighborhood of points no larger change of direction occurs. The contour direction is determined from the direction of the regression line (i.e., the least-squares approximating line) through all points in a neighborhood of SmoothSmoothSmoothsmoothsmooth points around a contour point. The directions thus determined are smoothed with a Gaussian of width SmoothSmoothSmoothsmoothsmooth. WeightWeightWeightweightweight is a weighting factor for the sensitiveness of the operator. The larger WeightWeightWeightweightweight is selected, the less dominant points are found.

Each polygon needs a reference to a contour. If the reference is missing, because the polygon is e.g., read from a DXF-File, split_contours_xldsplit_contours_xldSplitContoursXldSplitContoursXldsplit_contours_xld returns an error.

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

PolygonsPolygonsPolygonspolygonspolygons (input_object)  xld_poly(-array) objectHXLDPolyHObjectHObjectHobject

Polygons for which the corresponding contours are to be split.

ContoursContoursContourscontourscontours (output_object)  xld_cont(-array) objectHXLDContHObjectHObjectHobject *

Split contours.

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

Mode for the splitting of the contours.

Default: 'polygon' "polygon" "polygon" "polygon" "polygon"

List of values: 'dominant'"dominant""dominant""dominant""dominant", 'polygon'"polygon""polygon""polygon""polygon"

WeightWeightWeightweightweight (input_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Weight for the sensitiveness.

Default: 1

SmoothSmoothSmoothsmoothsmooth (input_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Width of the smoothing mask.

Default: 5

Possible Predecessors

gen_polygons_xldgen_polygons_xldGenPolygonsXldGenPolygonsXldgen_polygons_xld

Possible Successors

regress_contours_xldregress_contours_xldRegressContoursXldRegressContoursXldregress_contours_xld

See also

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

Module

Foundation