You are here: Start » FIL.NET » FIL.ConvertToEquidistantPath
Creates a new path whose characteristic points lie on the input path, but are equally spaced.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
public static void ConvertToEquidistantPath ( FilNet.Path inPath, float inStep, FilNet.EquidistanceType inEquidistanceType, FilNet.Path outPath )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inPath | FilNet.Path | Input path. | ||
![]() | inStep | float | <0.0f, INF> | 1.0f | Requested distance between consecutive points. Default value: 1.0f. |
![]() | inEquidistanceType | FilNet.EquidistanceType | Defines how the distance is measured. | ||
![]() | outPath | FilNet.Path | Output path. |
Description
The operation follows a path from its beginning to the end, reselecting its characteristic points every inStep pixels. Note that this operation can significantly change the shape of a path, especially when the inStep value is relatively big. The output path's last point is mostly not the same as the input path's last point, because it would lead to last output path's segment being too short.
To reduce the number of points in a path preserving its shape, one can use ReducePath filter.
Examples
![]() |
![]() |
ConvertToEquidistantPath run on the sample path with inStep = 10 and inEquidistanceType = OutputPathEquidistance.
![]() |
![]() |
ConvertToEquidistantPath run on the sample path with inStep = 100 and inEquidistanceType = OutputPathEquidistance.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Input step has to be positive in ConvertToEquidistantPath. |