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 | |
|---|---|---|---|---|---|
![]() |
inSurface | Surface | |||
![]() |
inRoi | Region | None | None | Range of pixels to be processed | |
![]() |
inCellWidth | int | 2 - ![]() |
16 | Width of a single cell in the girds coordinate system |
![]() |
inCellHeight | int | None | 2 - ![]() |
None | Height of a single cell in the girds coordinate system |
![]() |
inFlatnessNoiseLevel | float | 0.0D - 1.0D | 0.04 | |
![]() |
inMinCellCoverage | float | 0.0 - 1.0 | 0.3 | Minimum percentage of valid points that a planar cell has to have |
![]() |
outPlanarCells | list[Region] | |||
![]() |
diagPlanarCellNormals | list[Segment3D] | Segments representing the normals of computed cells, | ||
![]() |
diagCellRegions | list[Region] | Regions of all both planar and non-planar cells |




