oevislib_net  0.14.3.0
Loading...
Searching...
No Matches
Global Transforms

Functions

Path oevislib_net.Path.Shorten (float inMaxDistance)
 Shortens the path, reducing the number of points but preserving the shape.
Path oevislib_net.Path.SpaceRegularly (float inStep)
 Creates a new path with points equally spaced and lying on the input path.
static void oevislib_net.Path.SegmentPath (Path inPath, float inStdDev, float inMaxDeviation, PathSegmentationMode inSegmentationMode, float inMaxArcRadius, Optional< Array< Path > > outStraight, Optional< Array< Path > > outArciform, Optional< Array< Segment2D > > outSegments, Optional< Array< Arc2D > > outArcs)
 Splits a path into parts that can be approximated as segments (or arcs, if specified).
Path oevislib_net.Path.GetBicircularCurve (int inInterpolationPoints)
 Builds a bi-circular curve starting from the path's points.
Path oevislib_net.Path.RemoveSelfIntersections ()
 Removes the self-intersections of the path.
void oevislib_net.Path.Extend (float inExtraLengthOnFirst, float inExtraLengthOnLast)
 Resizes the segments at the path's ends.
Path oevislib_net.Path.ExtractLongestSubpath (float inMaxTurnAngle)
 Creates a new path selecting the longest segment sequence which turns at most the angle provided.
Path oevislib_net.Path.Stretch (Point2D inNewStartingPoint, Point2D inNewEndingPoint)
 Aligns the path so that its endpoints match the two provided ones.

Detailed Description

Function Documentation

◆ Extend()

void oevislib_net.Path.Extend ( float inExtraLengthOnFirst,
float inExtraLengthOnLast )
inline

Resizes the segments at the path's ends.

Parameters
inExtraLengthOnFirstLength added to the first segment. Range: [0, +inf).
inExtraLengthOnLastLength added to the last segment. Range: [0, +inf).

◆ ExtractLongestSubpath()

Path oevislib_net.Path.ExtractLongestSubpath ( float inMaxTurnAngle)
inline

Creates a new path selecting the longest segment sequence which turns at most the angle provided.

Parameters
inMaxTurnAngleMaximum turning angle allowed between two consecutive segments [deg]. Range: [0, 180].
Returns
The created path.

◆ GetBicircularCurve()

Path oevislib_net.Path.GetBicircularCurve ( int inInterpolationPoints)
inline

Builds a bi-circular curve starting from the path's points.

Parameters
inInterpolationPointsNumber of points used for the interpolation between path's points. Range: [0, +inf).
Returns
The smoothed path.

◆ RemoveSelfIntersections()

Path oevislib_net.Path.RemoveSelfIntersections ( )
inline

Removes the self-intersections of the path.

Returns
The new path without self-intersections.

◆ SegmentPath()

void oevislib_net.Path.SegmentPath ( Path inPath,
float inStdDev,
float inMaxDeviation,
PathSegmentationMode inSegmentationMode,
float inMaxArcRadius,
Optional< Array< Path > > outStraight,
Optional< Array< Path > > outArciform,
Optional< Array< Segment2D > > outSegments,
Optional< Array< Arc2D > > outArcs )
inlinestatic

Splits a path into parts that can be approximated as segments (or arcs, if specified).

Parameters
inPathInput path.
inStdDevStandard deviation used for Gaussian smoothing. Range: [0, +inf).
inMaxDeviationMaximum distance of a path point from its theoretical position. Range: [0, +inf).
inSegmentationModeSelects which geometric shape can be used during the segmentation process.
inMaxArcRadiusMaximum radius of a fitted arc. Range: [0, +inf).
outStraightParts of the input path that are classified as segments.
outArciformParts of the input path that are classified as arcs.
outSegmentsArray of segments approximating the paths found in the outStraight variable.
outArcsArray of arcs approximating the paths found in the outArciform variable.

◆ Shorten()

Path oevislib_net.Path.Shorten ( float inMaxDistance)
inline

Shortens the path, reducing the number of points but preserving the shape.

Parameters
inMaxDistanceMaximum distance between points of the reduced path. Range: [0, +inf).
Returns
The shortened path.

◆ SpaceRegularly()

Path oevislib_net.Path.SpaceRegularly ( float inStep)
inline

Creates a new path with points equally spaced and lying on the input path.

Parameters
inStepDistance between each point. Range: [0, +inf).
Returns
The new path.

◆ Stretch()

Path oevislib_net.Path.Stretch ( Point2D inNewStartingPoint,
Point2D inNewEndingPoint )
inline

Aligns the path so that its endpoints match the two provided ones.

Parameters
inNewStartingPointNew path's starting point.
inNewEndingPointNew path's ending point.
Returns
The stretched path.