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
Input value inPointGrid Point3DGrid Input point grid
Input value inRoi Region | None None Region of interest
Output value outPlane Plane3D Fitted plane
Output value outDistances list[float] Distances of the input grid points to a resulting plane
Output value outSignedDistanceSum float Sum of signed distances of the input grid points to a resulting plane
Output value outDistanceSum float Sum of distances of the input grid points to a resulting plane
Output value outSquaredDistances list[float] Squared distances of the input grid points to a resulting plane
Output value outSquaredDistanceSum float Sum of squared distances of the input grid points to a resulting plane