FitCircleToSurfaceHole
Fits a circle to a hole in a surface plane.
Syntax
C++
C#
Python
def FitCircleToSurfaceHole( inSurface: Surface, inIterationCount: int, /, *, inRoi: Region | None = None, inPlaneOutlierSuppression: MEstimator = MEstimator.Huber, inClippingFactor: float = 2.5, inInitialPlane: Plane3D | None = None, inCircleFittingMethod: CircleFittingMethod = CircleFittingMethod.AlgebraicKasa, inCircleOutlierSuppression: MEstimator | None = None ) -> ( outCircle3D: Circle3D | None, outPlane: Plane3D, outInliers: list[Point3D], outDistances: list[float], outSignedDistanceSum: float, outDistanceSum: float, outSquaredDistances: list[float], outSquaredDistanceSum: float )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inSurface | Surface | Input surface | ||
![]() |
inRoi | Region | None | None | Region of interest | |
![]() |
inPlaneOutlierSuppression | MEstimator | MEstimator.Huber | Selects a method for ignoring points not lying on the fitted plane | |
![]() |
inClippingFactor | float | 0.675 - 6.0 | 2.5 | Multitude of standard deviation within which points are considered inliers |
![]() |
inIterationCount | int | 0 - ![]() |
Number of iterations of outlier suppressing algorithm | |
![]() |
inInitialPlane | Plane3D | None | None | Initial approximation of a plane (if available) | |
![]() |
inCircleFittingMethod | CircleFittingMethod | CircleFittingMethod.AlgebraicKasa | Select a method for fitting a circle to a set of points | |
![]() |
inCircleOutlierSuppression | MEstimator | None | None | Selects a method for ignoring points not lying on the fitted circle | |
![]() |
outCircle3D | Circle3D | None | Circle fitted to a surface hole | ||
![]() |
outPlane | Plane3D | Plane fitted to the surface points | ||
![]() |
outInliers | list[Point3D] | Points matching the computed plane | ||
![]() |
outDistances | list[float] | Distances of the input surface points to a resulting plane | ||
![]() |
outSignedDistanceSum | float | Sum of signed distances of the input surface points to a resulting plane | ||
![]() |
outDistanceSum | float | Sum of distances of the input surface points to a resulting plane | ||
![]() |
outSquaredDistances | list[float] | Squared distances of the input surface points to a resulting plane | ||
![]() |
outSquaredDistanceSum | float | Sum of squared distances of the input surface points to a resulting plane |



