You are here: Start » AVL.NET » Function Reference » Path » Path Spatial Transforms » AVL.PathAlongArc

AVL.PathAlongArc

Transforms a path to a coordinate system in which the 'axis' arc is vertical or horizontal.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void PathAlongArc
(
	AvlNet.Path inPath,
	AvlNet.Arc2D inAxis,
	AvlNet.Axis inAxisType,
	float inAxisCoordinate,
	bool inInverse,
	AvlNet.Path outPath
)

Parameters

Name Type Range Default Description
inPathAvlNet.PathInput path.
inAxisAvlNet.Arc2DInput axis arc.
inAxisTypeAvlNet.AxisYType of axis the input axis arc is parallel to. Default value: Y.
inAxisCoordinatefloat0.0fCoordinate of the axis arc. Default value: 0.0f.
inInverseboolTrueSwitches to the inverse operation. Default value: True.
outPathAvlNet.PathTransformed path.

Description

This filter transforms each point in inPath the same way how PointAlongArc does.

Examples

ImageAlongArc performed on the sample image with inAxisType = X and inScanWidth = 50. Blue path on output image was reprojected on original image (as orange path) using PathAlongArc with inAxisType = X, inAxisCoordinate = 25, inInverse = true. ImageAlongArc and PathAlongArc used the same arc for transformations.

Remarks

No new points are being added to input path during transformation, and this may lead to some "distortions" of path. This is especially visible on long, straight portions of input path, which are described with only 2 points: the beginning one and the ending one. After transformation, such part of path is still a line, but it may not be corresponding to the transformed image. Easy way to overcome this problem is to increase number of points creating an transformed path.

See also