Easy3D 2.5.3
Curve< Point_t > Class Template Referenceabstract

Base class for curve fitting/interpolation. More...

#include <easy3d/core/curve.h>

Inheritance diagram for Curve< Point_t >:
BSpline< Point_t > Bezier< Point_t > CatmullRom< Point_t >

Public Types

typedef Point_t::FT FT
 The floating-point number type.
 

Public Member Functions

 Curve ()
 Default constructor.
 
void set_steps (int steps)
 Set the number of steps.
 
void add_way_point (const Point_t &point)
 Add a way point.
 
int node_count () const
 Return the number of nodes.
 
const Point_t & node (int i) const
 Return the coordinates of the i_th node.
 
FT length_from_start_point (int i) const
 Return the total curve length from the start point.
 
FT total_length () const
 Return the total length of the curve.
 
void clear ()
 Clear all cached values.
 

Detailed Description

template<typename Point_t>
class easy3d::Curve< Point_t >

Base class for curve fitting/interpolation.

See also
Bezier, BSpline, and CatmullRom

The documentation for this class was generated from the following file: