You are here: Start » AVL.NET » Function Reference » Point3DGrid » Point3DGrid Fitting » AVL.VoxelizePoint3DGrid

AVL.VoxelizePoint3DGrid

Keeps one point from each occupied voxel of a given size. Value of all remaining grid points is set to invalid.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void VoxelizePoint3DGrid
(
	AvlNet.Point3DGrid inPointGrid,
	NullableRef<AvlNet.Region> inRoi,
	float inVoxelSize,
	AvlNet.Point3DGrid outGrid
)

Parameters

Name Type Range Default Description
inPointGridAvlNet.Point3DGridInput Point3DGrid.
inRoiAvlNet.NullableRef<AvlNet.Region>Region of interest. Default value: atl::NIL.
inVoxelSizefloat<0.0f, INF>0.5fDefines a voxel size used to subsample the grid. Default value: 0.5f.
outGridAvlNet.Point3DGridSubsampled 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

Function Overrides

See also