FitPlaneToPoints
Approximates points with a plane using the Least Squares method.
Syntax
C++
C#
Python
def FitPlaneToPoints( inPoints: list[Point3D], / ) -> ( outPlane: Plane3D, outDistances: list[float], outSignedDistanceSum: float, outDistanceSum: float, outSquaredDistances: list[float], outSquaredDistanceSum: float )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inPoints | list[Point3D] | ||
![]() |
outPlane | Plane3D | Fitted plane | |
![]() |
outDistances | list[float] | Distances of the input points to a resulting plane | |
![]() |
outSignedDistanceSum | float | Sum of signed distances of the input points to a resulting plane | |
![]() |
outDistanceSum | float | Sum of distances of the input points to a resulting plane | |
![]() |
outSquaredDistances | list[float] | Squared distances of the input points to a resulting plane | |
![]() |
outSquaredDistanceSum | float | Sum of squared distances of the input points to a resulting plane |


