Back to Aurora Vision Library Lite website

You are here: Start » Path » Path Basics » SkipEmptyPath

SkipEmptyPath


Header: AVL.h
Namespace: avl

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

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

Syntax

void avl::SkipEmptyPath
(
	const avl::Path& inPath,
	atl::Conditional<avl::Path>& outNotEmptyPath,
	bool& outIsNotEmpty
)

Parameters

Name Type Default Description
Input value inPath const Path& Input path
Output value outNotEmptyPath Conditional<Path>& A copy of the input path, if it is not empty, or Nil otherwise
Output value outIsNotEmpty bool& Indication if the input path is not empty