Navigation
API > API/Runtime > API/Runtime/CADKernel
Finder of the index of the segment of the polyline coordinates containing the input coordinate This abstract class return the lower index of the segment i.e. InPolylineCoordinates[OutIndex] <= InCoordinate <= InPolylineCoordinates[OutIndex + 1] As input coordinates are increasing, the algorithme is optimize by restarting form the last coordinate found.
Class derived from it allows to optimized polyline functions needing the index of the segment containing the input coordinate (
| Name | FIndexOfCoordinateFinder |
| Type | class |
| Header File | /Engine/Source/Runtime/Datasmith/CADKernel/Base/Public/Utils/IndexOfCoordinateFinder.h |
| Include Path | #include "Utils/IndexOfCoordinateFinder.h" |
Syntax
class FIndexOfCoordinateFinder
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FIndexOfCoordinateFinder
(
const TArray< double >& InPolylineCoordinates |
Utils/IndexOfCoordinateFinder.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 Find
(
const double InCoordinate |
Utils/IndexOfCoordinateFinder.h |
See Also
-
ApproximatePoint).
-
FLinearFinder to optimize the search when the next points to search is nearest the previous.
-
FFinderByDichotomy to optimize the search when there is no simple rule
-
so a dichotomy algorithm is used. This class is dedicated for a unique or mess up set of input coordinates