template<template< size_t, class > class Point, size_t N, typename T>
class easy3d::Curve< Point, N, T >
Abstract base class for curve fitting/interpolation.
- Template Parameters
-
Point | A templated point class that supports basic arithmetic operations (addition and scalar multiplication). It must be parameterized as Point<N, T> , where N is the number of dimensions, and T is the data type. |
N | The number of dimensions (e.g., 2 for 2D, 3 for 3D). |
T | The scalar type (e.g., float or double ). |
- See also
- Bezier, BSpline, and CatmullRom
template<template< size_t, class > class Point, size_t N, typename T>
virtual std::vector< Point_t > generate |
( |
const std::vector< Point_t > & | control_points, |
|
|
size_t | num_samples ) const |
|
pure virtual |
Generates a curve based on the given control points.
- Parameters
-
control_points | A vector of control points that define the curve. |
num_samples | The number of samples to generate along the curve. |
- Returns
- A vector of points representing the generated curve.
Implemented in Bezier< Point, N, T >, BSpline< Point, N, T >, and CatmullRom< Point, N, T >.