SegmentSurface_PlanarCells


Computes a list of planar cells of a surface

Syntax

C++
C#
Python
 
def SegmentSurface_PlanarCells(
	inSurface: Surface,
	/,
	*,
	inRoi: Region | None = None,
	inCellWidth: int = 16,
	inCellHeight: int | None = None,
	inFlatnessNoiseLevel: float = 0.04,
	inMinCellCoverage: float = 0.3
)
-> (
	outPlanarCells: list[Region],
	diagPlanarCellNormals: list[Segment3D],
	diagCellRegions: list[Region]
)

Parameters

Name Type Range Default Description
Input value inSurface Surface
Input value inRoi Region | None None Range of pixels to be processed
Input value inCellWidth int 2 - 16 Width of a single cell in the girds coordinate system
Input value inCellHeight int | None 2 - None Height of a single cell in the girds coordinate system
Input value inFlatnessNoiseLevel float 0.0D - 1.0D 0.04
Input value inMinCellCoverage float 0.0 - 1.0 0.3 Minimum percentage of valid points that a planar cell has to have
Output value outPlanarCells list[Region]
Diagnostic input diagPlanarCellNormals list[Segment3D] Segments representing the normals of computed cells,
Diagnostic input diagCellRegions list[Region] Regions of all both planar and non-planar cells