FitCircleToRidges3D
Performs a series of 1D ridge detections and finds a circle that best matches the detected points.
Applications:Precise detection of a circular object or hole, whose rough location is known beforehand.
Syntax
C++
C#
Python
def FitCircleToRidges3D( inSurface: Surface, inFittingMap: CircleFittingMap, inRidgeScanParams: RidgeScanParams3D, inRidgeSelection: Selection, inMaxIncompleteness: float, inFittingMethod: CircleFittingMethod, /, *, inLocalBlindness: LocalBlindness | None = None, inMaxProfileGapWidth: int | None = 1, inOutlierSuppression: MEstimator | None = None ) -> ( outCircle: Circle3D | None, outRidges: list[SurfaceRidge1D | None], outDeviationProfile: Profile | None, outInliers: list[Point3D], outHeightProfiles: list[Profile], outResponseProfiles: list[Profile] )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inSurface | Surface | Surface to fit the circle to | ||
![]() |
inFittingMap | CircleFittingMap | Input fitting map | ||
![]() |
inRidgeScanParams | RidgeScanParams3D | Parameters controlling the ridge extraction process | ||
![]() |
inRidgeSelection | Selection | Selection mode of ridges | ||
![]() |
inLocalBlindness | LocalBlindness | None | None | Defines conditions in which weaker ridges can be detected in the vicinity of stronger ridges | |
![]() |
inMaxProfileGapWidth | int | None | 0 - ![]() |
1 | Maximal number of consecutive not existing profile points |
![]() |
inMaxIncompleteness | float | 0.0 - 0.999 | Maximal fraction of ridge points not found | |
![]() |
inFittingMethod | CircleFittingMethod | Method used to fit a circle | ||
![]() |
inOutlierSuppression | MEstimator | None | None | Selects a method for ignoring incorrectly detected points | |
![]() |
outCircle | Circle3D | None | Fitted circle or nothing if the fitting fails | ||
![]() |
outRidges | list[SurfaceRidge1D | None] | Found ridges | ||
![]() |
outDeviationProfile | Profile | None | Profile of distances between the actual circle points and the corresponding reference circle points | ||
![]() |
outInliers | list[Point3D] | Points matching the fitting Circle | ||
![]() |
outHeightProfiles | list[Profile] | Extracted surface height profiles | ||
![]() |
outResponseProfiles | list[Profile] | Profiles of the ridge operator response |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.



