SHAPER  9.12.0
GeomAlgoAPI_CurveBuilder Class Reference

Allows to create a curve by the list of point. More...

Static Public Member Functions

static GeomEdgePtr edge (const std::list< GeomPointPtr > &thePoints, const bool thePeriodic, const bool theIsToReorder, const GeomDirPtr &theStartTangent, const GeomDirPtr &theEndTangent)
 Creates an interpolation curve from points. More...
 
static GeomEdgePtr approximate (const std::list< GeomPointPtr > &thePoints, const bool thePeriodic, const double thePrecision)
 Approximate the given points by a curve. More...
 
static void reorderPoints (std::list< GeomPointPtr > &thePoints)
 Reoder the list of points to get a polyline of minimal length. More...
 

Detailed Description

Allows to create a curve by the list of point.

Member Function Documentation

◆ edge()

GeomEdgePtr GeomAlgoAPI_CurveBuilder::edge ( const std::list< GeomPointPtr > &  thePoints,
const bool  thePeriodic,
const bool  theIsToReorder,
const GeomDirPtr &  theStartTangent,
const GeomDirPtr &  theEndTangent 
)
static

Creates an interpolation curve from points.

Parameters
[in]thePointslist of points.
[in]thePeriodicdefines whether the curve to be periodic.
[in]theIsToReorderdefines whether to change the order of points to construct the shortest curve.
[in]theStartTangentvector tangent to the start of curve.
[in]theEndTangentvector tangent to the end of curve.
Returns
Interpolation curve (edge). Empty in case of error or bad input.

◆ approximate()

GeomEdgePtr GeomAlgoAPI_CurveBuilder::approximate ( const std::list< GeomPointPtr > &  thePoints,
const bool  thePeriodic,
const double  thePrecision 
)
static

Approximate the given points by a curve.

Parameters
[in]thePointslist of points.
[in]thePeriodicdefines whether the curve to be periodic.
[in]thePrecisionhow close the curve should be to the points.
Returns
Apporimation curve (edge). Empty in case of error or bad input.

◆ reorderPoints()

void GeomAlgoAPI_CurveBuilder::reorderPoints ( std::list< GeomPointPtr > &  thePoints)
static

Reoder the list of points to get a polyline of minimal length.