Back to Aurora Vision Library website

You are here: Start » Function Reference » Point3DGrid » Point3DGrid Basics » SkipEmptyPoint3DGrid

SkipEmptyPoint3DGrid


Header: AVL.h
Namespace: avl
Module: Vision3DLite

If the input Point3DGrid has at least one point defined, then it is copied to the output; otherwise Nil is returned.

Applications: Secures against domain errors caused by empty grids, e.g. just before the FitPlaneToPoints filter is to be invoked.

Syntax

C++
C#
 
void avl::SkipEmptyPoint3DGrid
(
	const avl::Point3DGrid& inPoint3DGrid,
	atl::Conditional<avl::Point3DGrid>& outNotEmptyPoint3DGrid,
	bool& outIsNotEmpty
)

Parameters

Name Type Default Description
Input value inPoint3DGrid const Point3DGrid&
Output value outNotEmptyPoint3DGrid Conditional<Point3DGrid>& A copy of the input grid, if it is not empty, or Nil otherwise
Output value outIsNotEmpty bool& Indication if the input grid is not empty