SegmentSurface_Planes
Segments a surface into planes.
Syntax
C++
C#
Python
def SegmentSurface_Planes( inSurface: Surface, /, *, inRoi: Region | None = None, inCellWidth: int = 16, inCellHeight: int | None = None, inFlatnessNoiseLevel: float = 0.04, inMaxIterations: int = 1000, inMaxAngleDeviation: float = 15.0, inMaxDistanceDeviation: float = 0.1, inMinCellCoverage: float = 0.3, inMinPlaneArea: int = 1 ) -> ( outPlaneRegions: list[Region], outPlanes: list[Plane3D], diagPlanarCells: 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 | |
![]() |
inMaxIterations | int | 1 - ![]() |
1000 | |
![]() |
inMaxAngleDeviation | float | 0.0D - 90.0D | 15.0 | |
![]() |
inMaxDistanceDeviation | float | 0.0D - ![]() |
0.1 | |
![]() |
inMinCellCoverage | float | 0.0 - 1.0 | 0.3 | Minimum percentage of valid points that a planar cell has to have |
![]() |
inMinPlaneArea | int | 1 - +![]() |
1 | Minimum number of pixels for a single plane |
![]() |
outPlaneRegions | list[Region] | |||
![]() |
outPlanes | list[Plane3D] | |||
![]() |
diagPlanarCells | list[Region] | Computed planar cells |




