FitPlaneToPoint3DGrid
Approximates points of the input grid with a plane using the Least Squares method.
Syntax
C++
C#
Python
def FitPlaneToPoint3DGrid( inPointGrid: Point3DGrid, /, *, inRoi: Region | None = None ) -> ( outPlane: Plane3D, outDistances: list[float], outSignedDistanceSum: float, outDistanceSum: float, outSquaredDistances: list[float], outSquaredDistanceSum: float )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inPointGrid | Point3DGrid | Input point grid | |
![]() |
inRoi | Region | None | None | Region of interest |
![]() |
outPlane | Plane3D | Fitted plane | |
![]() |
outDistances | list[float] | Distances of the input grid points to a resulting plane | |
![]() |
outSignedDistanceSum | float | Sum of signed distances of the input grid points to a resulting plane | |
![]() |
outDistanceSum | float | Sum of distances of the input grid points to a resulting plane | |
![]() |
outSquaredDistances | list[float] | Squared distances of the input grid points to a resulting plane | |
![]() |
outSquaredDistanceSum | float | Sum of squared distances of the input grid points to a resulting plane |


