Navigation
API > API/Runtime > API/Runtime/CADKernel > API/Runtime/CADKernel/Geo > API/Runtime/CADKernel/Geo/Sampling
References
| Module | CADKernel |
| Header | /Engine/Source/Runtime/Datasmith/CADKernel/Base/Public/Geo/Sampling/PolylineTools.h |
| Include | #include "Geo/Sampling/PolylineTools.h" |
Syntax
template<class PointType>
class TPolylineApproximator
Variables
| Type | Name | Description | |
|---|---|---|---|
| const TArray< double > & | PolylineCoordinates | ||
| const TArray< PointType > & | PolylinePoints |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TPolylineApproximator
(
const TArray< double >& InPolylineCoordinates, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| PointType | ApproximatePoint
(
const double InCoordinate |
Evaluate the point of the polyline at the input InCoordinate If the input coordinate is outside the boundary of the polyline, the coordinate of the nearest boundary is used. | |
| void | ApproximatePoint
(
double InCoordinate, |
Evaluate the point of the polyline at the input Coordinate If the input coordinate is outside the boundary of the polyline, the coordinate of the nearest boundary is used. | |
| void | ApproximatePoints
(
const TArray< double >& InCoordinates, |
Evaluate the points of the polyline associated to the increasing array of input Coordinates If the input coordinate is outside the boundary of the polyline, the coordinate of the nearest boundary is used. | |
| void | ApproximatePoints
(
const TArray< double >& InCoordinates, |
||
| void | ComputeBoundingBox
(
const int BoundaryIndex, |
||
| double | ComputeCurvilinearCoordinatesOfPolyline
(
const FLinearBoundary& InBoundary, |
||
| double | |||
| double | ComputeLengthOfSubPolyline
(
const int BoundaryIndex, |
||
| double | ComputeLengthOfSubPolyline
(
const FLinearBoundary& InBoundary |
||
| PointType | ComputePoint
(
const int32 Index, |
||
| void | GetStartEndIndex
(
const FLinearBoundary& InBoundary, |
||
| void | GetSubPolyline
(
const FLinearBoundary& InBoundary, |
Get the subset of point defining the sub polyline bounded by InBoundary OutCoordinates and OutPoints are emptied before the process | |
| void | GetSubPolyline
(
const FLinearBoundary& InBoundary, |
Append to the OutPoints array the sub polyline bounded by InBoundary according to the orientation | |
| void | ProjectCoincidentalPolyline
(
const FLinearBoundary& InBoundary, |
Project each point of a coincidental polyline on the Polyline. | |
| void | ProjectPointsToPolyline
(
const FLinearBoundary& InBoundary, |
Project a Set of points on a restricted polyline (StartIndex & EndIndex define the polyline boundary) Each points are projected on all segments of the restricted polyline, the closest are selected | |
| double | ProjectPointToPolyline
(
int32 BoundaryIndices, |
Project a Set of points on a restricted polyline (StartIndex & EndIndex define the polyline boundary) the points are projected on all segments of the polyline, the closest are selected | |
| double | ProjectPointToPolyline
(
const FLinearBoundary& InBoundary, |
Project a Set of points on a restricted polyline (StartIndex & EndIndex define the polyline boundary) the points are projected on all segments of the polyline, the closest are selected | |
| void | SamplePolyline
(
const FLinearBoundary& InBoundary, |
||
| void | UpdateSubPolylineBBox
(
const FLinearBoundary& InBoundary, |
Update the Curve bounding box with this subset of polyline |