SurfaceFlatness


Computes the surface flatness i.e. how thick the surface is according to the input plane.

Syntax

C++
C#
Python
 
def SurfaceFlatness(
	inSurface: Surface,
	inPlane: Plane3D,
	/,
	*,
	inRoi: Region | None = None
)
-> (
	outMaximumPoint1: Point3D,
	outMaximumPoint2: Point3D,
	outMaximumDistance1: float,
	outMaximumDistance2: float,
	outFlatness: float
)

Parameters

Name Type Default Description
Input value inSurface Surface Input surface
Input value inRoi Region | None None Range of pixels to be processed
Input value inPlane Plane3D Input plane
Output value outMaximumPoint1 Point3D Surface point with the largest distance on one side of the plane
Output value outMaximumPoint2 Point3D Surface point with the largest distance on the other side of the plane
Output value outMaximumDistance1 float Distance of the first maximum point from the input plane
Output value outMaximumDistance2 float Distance of the second maximum point from the input plane
Output value outFlatness float Difference between two extremal distances of surface points from the input plane