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.

◆ 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] thePoints list of points. [in] thePeriodic defines whether the curve to be periodic. [in] theIsToReorder defines whether to change the order of points to construct the shortest curve. [in] theStartTangent vector tangent to the start of curve. [in] theEndTangent vector 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] thePoints list of points. [in] thePeriodic defines whether the curve to be periodic. [in] thePrecision how 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.