Skip to content

Fitting

Fitting - FitArc

Fits an array of points to an arc object, if possible.

IN

Name Type Description
InPoints Point2DArray Input points.
InFittingMethod Enum < CircleFittingMethod > Circle fitting technique used by the algorithm.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutArc2D Arc2DNull A conditional object containing the fitted arc. If, for any reason, the fit cannot be performed, the conditional will be Null.
Error ErrorState Gets the execution error message

Fitting - FitArc_ToPath

Fits a path to an arc object, if possible. Note: When a path is provided (instead of a simple array of points), the point's order is taken into account to compute the arc's angles.

IN

Name Type Description
InPath Path Input path.
InFittingMethod Enum < CircleFittingMethod > Circle fitting technique used by the algorithm.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutArc2D Arc2DNull A conditional object containing the fitted arc. If, for any reason, the fit cannot be performed, the conditional will be Null.
Error ErrorState Gets the execution error message

Fitting - FitCircle

Fits an array of points to a circle object, if possible.

IN

Name Type Description
InPoints Point2DArray Input points.
InFittingMethod Enum < CircleFittingMethod > Circle fitting technique used by the algorithm.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutCircle2D Circle2DNull A conditional object containing the fitted circle. If, for any reason, the fit cannot be performed, the conditional will be Null.
Error ErrorState Gets the execution error message

Fitting - FitLine

Fits an array of points to a line object, if possible.

IN

Name Type Description
InPoints Point2DArray Input points.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutLine2D Line2DNull A conditional object containing the fitted line. If, for any reason, the fit cannot be performed, the conditional will be Null.
Error ErrorState Gets the execution error message

Fitting - FitSegment

Fits an array of points to a segment object, if possible.

IN

Name Type Description
InPoints Point2DArray Input points.
Name String Set the tool's name
Enable Bool Sets if current tool is enabled or not

OUT

Name Type Description
OutSegment2D Segment2DNull A conditional object containing the fitted segment. If, for any reason, the fit cannot be performed, the conditional will be Null.
Error ErrorState Gets the execution error message