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
Input value inPoints list[Point3D]
Output value outPlane Plane3D Fitted plane
Output value outDistances list[float] Distances of the input points to a resulting plane
Output value outSignedDistanceSum float Sum of signed distances of the input points to a resulting plane
Output value outDistanceSum float Sum of distances of the input points to a resulting plane
Output value outSquaredDistances list[float] Squared distances of the input points to a resulting plane
Output value outSquaredDistanceSum float Sum of squared distances of the input points to a resulting plane