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 | |
---|---|---|---|---|
inPath | const Path& | Input path | ||
outNotEmptyPath | Conditional<Path>& | A copy of the input path, if it is not empty, or Nil otherwise | ||
outIsNotEmpty | bool& | Indication if the input path is not empty |