oevislib_net  0.14.3.0
Loading...
Searching...
No Matches
Features

Functions

Array< Segment2Doevislib_net.Path.GetSegments ()
 Converts the path to an array of Segment2D objects.
Point2D oevislib_net.Path.GetMassCenter ()
 Computes the path's mass center.
float oevislib_net.Path.GetLength ()
 Computes the length of the path.
Point2D oevislib_net.Path.GetFirstPoint ()
 Returns the first path point.
Point2D oevislib_net.Path.GetLastPoint ()
 Returns the last path point.
Profile oevislib_net.Path.GetTurnAngleProfile ()
 Computes the turning angles for each point of the path.
float oevislib_net.Path.GetAverageTurnAngle ()
 Computes the average turning angle (per unit of length) between consecutive segments of the path.
Array< float > oevislib_net.Path.GetTurnAngleLocalMaxima (TurnAngleDirection inTurnAngleDirection, float inMinTurnAngle, float inMinDistance, float inSmoothingStdDev, Optional< Array< int > > outIndices, Optional< Array< Point2D > > outPoints, Optional< Profile > outTurnAngleProfile)
 Computes the local maxima of the path's turn angle profile.
float oevislib_net.Path.GetMaxTurnAngle (TurnAngleDirection inTurnAngleDirection, Optional< int > outIndex, Optional< Point2D > outPoint)
 Computes the maximum turn angle between the path's consecutive segments.
Circle2D oevislib_net.Path.GetBoundingCircle ()
 Computes the smallest circle that contains the entire path.
Box oevislib_net.Path.GetBoundingBox ()
 Computes the smallest rectangle box that contains the entire path.
Rectangle2D oevislib_net.Path.GetBoundingRect (RectangleOrientation inRectangleOrientation)
 Computes the smallest rectangle that contains the entire path.
Segment2D oevislib_net.Path.GetDiameter ()
 Finds the longest segment connecting two points of the path.
void oevislib_net.Path.GetCaliperDiameters (Optional< Segment2D > outMinDiameter=null, Optional< Segment2D > outMaxDiameter=null)
 Computes the longest and the shortest segments between two points of the path.
Path oevislib_net.Path.GetConvexHull ()
 Computes the path's convex hull.
static Array< Point2Doevislib_net.Path.ExtractPoints (Array< Path > inPaths)
 Extracts all the points from a group of paths.
bool oevislib_net.Path.SelfIntersects (Optional< Array< Point2D > > outPoints, Optional< Array< int > > outFirstSegmentIndices, Optional< Array< int > > outSecondSegmentIndices)
 Tests if the path has self-intersections.
bool oevislib_net.Path.IntersectsWith (Path inPath, Optional< float > outOverlapArea=null)
 Check if the Path (closed) is intersecting with the given Path (closed).

Detailed Description

Function Documentation

◆ ExtractPoints()

Array< Point2D > oevislib_net.Path.ExtractPoints ( Array< Path > inPaths)
inlinestatic

Extracts all the points from a group of paths.

Parameters
inPathsInput paths.
Returns
An array with all the points.

◆ GetAverageTurnAngle()

float oevislib_net.Path.GetAverageTurnAngle ( )
inline

Computes the average turning angle (per unit of length) between consecutive segments of the path.

Returns
The computed value.

◆ GetBoundingBox()

Box oevislib_net.Path.GetBoundingBox ( )
inline

Computes the smallest rectangle box that contains the entire path.

Returns
The computed box.

◆ GetBoundingCircle()

Circle2D oevislib_net.Path.GetBoundingCircle ( )
inline

Computes the smallest circle that contains the entire path.

Returns
The computed circle.

◆ GetBoundingRect()

Rectangle2D oevislib_net.Path.GetBoundingRect ( RectangleOrientation inRectangleOrientation)
inline

Computes the smallest rectangle that contains the entire path.

Parameters
inRectangleOrientationSelects how the rectangle orientation will be normalized.
Returns
The computed rectangle.

◆ GetCaliperDiameters()

void oevislib_net.Path.GetCaliperDiameters ( Optional< Segment2D > outMinDiameter = null,
Optional< Segment2D > outMaxDiameter = null )
inline

Computes the longest and the shortest segments between two points of the path.

Parameters
outMinDiameterShortest segment.
outMaxDiameterLongest segment.

◆ GetConvexHull()

Path oevislib_net.Path.GetConvexHull ( )
inline

Computes the path's convex hull.

Returns
The computed convex hull.

◆ GetDiameter()

Segment2D oevislib_net.Path.GetDiameter ( )
inline

Finds the longest segment connecting two points of the path.

Returns
The computed segment.

◆ GetFirstPoint()

Point2D oevislib_net.Path.GetFirstPoint ( )
inline

Returns the first path point.

Returns
The first path point.

◆ GetLastPoint()

Point2D oevislib_net.Path.GetLastPoint ( )
inline

Returns the last path point.

Returns
The last path point.

◆ GetLength()

float oevislib_net.Path.GetLength ( )
inline

Computes the length of the path.

Returns
The computed length.

◆ GetMassCenter()

Point2D oevislib_net.Path.GetMassCenter ( )
inline

Computes the path's mass center.

Returns
The computed point.

◆ GetMaxTurnAngle()

float oevislib_net.Path.GetMaxTurnAngle ( TurnAngleDirection inTurnAngleDirection,
Optional< int > outIndex,
Optional< Point2D > outPoint )
inline

Computes the maximum turn angle between the path's consecutive segments.

Parameters
inTurnAngleDirectionFilters which type of turn must be considered (left, right, all).
outIndexIndex of the point at which the maximum turn angle is found.
outPointPoint at which the maximum turn angle is found.
Returns
The value of the maximum turn angle.

◆ GetSegments()

Array< Segment2D > oevislib_net.Path.GetSegments ( )
inline

Converts the path to an array of Segment2D objects.

Returns
The computed array.

◆ GetTurnAngleLocalMaxima()

Array< float > oevislib_net.Path.GetTurnAngleLocalMaxima ( TurnAngleDirection inTurnAngleDirection,
float inMinTurnAngle,
float inMinDistance,
float inSmoothingStdDev,
Optional< Array< int > > outIndices,
Optional< Array< Point2D > > outPoints,
Optional< Profile > outTurnAngleProfile )
inline

Computes the local maxima of the path's turn angle profile.

Parameters
inTurnAngleDirectionFilters which type of turn must be considered (left, right, all).
inMinTurnAngleMinimum allowed angle. Range: [0, 180].
inMinDistanceMinimum allowed distance between two local maxima. It assumes that each segment has a unit length. Range: [0, +inf).
inSmoothingStdDevStandard deviation of the Gaussian kernel used to smooth the path. Range: [0, +inf).
outIndicesIndices of the found local maxima.
outPointsPoints at which the local maxima were found.
outTurnAngleProfileProfile containing all the turning angles.
Returns
Array containing the values of the local maxima.

◆ GetTurnAngleProfile()

Profile oevislib_net.Path.GetTurnAngleProfile ( )
inline

Computes the turning angles for each point of the path.

Returns
The computer profile.

◆ IntersectsWith()

bool oevislib_net.Path.IntersectsWith ( Path inPath,
Optional< float > outOverlapArea = null )
inline

Check if the Path (closed) is intersecting with the given Path (closed).

Parameters
inPathinput Path. Needs to be closed.
outOverlapAreaThe area of the overlap polygon.
Returns
true if the Path intersect with the input Path.

◆ SelfIntersects()

bool oevislib_net.Path.SelfIntersects ( Optional< Array< Point2D > > outPoints,
Optional< Array< int > > outFirstSegmentIndices,
Optional< Array< int > > outSecondSegmentIndices )
inline

Tests if the path has self-intersections.

Parameters
outPointsPoints in which there is a self-intersection.
outFirstSegmentIndicesIndices of the first segment that causes each self-intersection.
outSecondSegmentIndicesIndices of the second segment that causes each self-intersection.
Returns
true if any self-intersection is found, false otherwise.