You are here: Start » FIL.NET » Function Reference » Point3DGrid » Point3DGrid Fitting » FIL.VoxelizePoint3DGrid
Keeps one point from each occupied voxel of a given size. Value of all remaining grid points is set to invalid.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void VoxelizePoint3DGrid ( FilNet.Point3DGrid inPointGrid, NullableRef<FilNet.Region> inRoi, float inVoxelSize, FilNet.Point3DGrid outGrid )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPointGrid | FilNet.Point3DGrid | Input Point3DGrid. | ||
![]() | inRoi | FilNet.NullableRef<FilNet.Region> | Region of interest. Default value: ftl::NIL. | ||
![]() | inVoxelSize | float | <0.0f, INF> | 0.5f | Defines a voxel size used to subsample the grid. Default value: 0.5f. |
![]() | outGrid | FilNet.Point3DGrid | Subsampled points. |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Input grid is empty in VoxelizePoint3DGrid. |
DomainError | Parameter inVoxelSize in VoxelizePoint3DGrid has to be greater than 0.0 |