Back to Aurora Vision Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » TrimPath

TrimPath


Header: AVL.h
Namespace: avl
Module: FoundationLite

Creates a path contained in a box from another path.

Syntax

C++
C#
 
void avl::TrimPath
(
	const avl::Path& inPath,
	const avl::Box& inBox,
	avl::TrimPathMethod::Type inTrimPathMethod,
	avl::Path& outPath
)

Parameters

Name Type Default Description
Input value inPath const Path& Input path
Input value inBox const Box&
Input value inTrimPathMethod TrimPathMethod::Type PointToPoint
Output value outPath Path& Output path

Examples

TrimPath performed on the sample box and path.

Errors

List of possible exceptions:

Error type Description
DomainError Unknown method for cropping a path in TrimPath.