Back to FabImage Library website

You are here: Start » Function Reference » Path » Path Spatial Transforms » InflatePath

InflatePath


Header: FIL.h
Namespace: fil
Module: FoundationPro

Enlarges a path by a given margin (points in the input path must be sorted clockwise).

Syntax

C++
C#
 
void fil::InflatePath
(
	const fil::Path& inPath,
	float inMargin,
	float inMaxPointDisplacement,
	ftl::Conditional<fil::Path>& outPath
)

Parameters

Name Type Range Default Description
Input value inPath const Path& Input path
Input value inMargin float Margin of inflation
Input value inMaxPointDisplacement float 0.0 - 1000.0f Maximal displacement of single point
Output value outPath Conditional<Path>& Output path

Description

Creates a new path by enlarging the existing one. Distance between corresponding segments of inPath and outPath is defined by inMargin.

Examples

Example of inflation of initial path (blue). Result is in orange. Note that results for closed (on left) and open path (on right) are slightly different.