|
Easy3D 2.6.1
|
Class for CatmullRom curve interpolation. More...
#include <easy3d/core/curve.h>
Public Types | |
| using | Point_t = Point<N, T> |
| The type of points. | |
Public Types inherited from Curve< Point, N, T > | |
| using | Point_t = Point<N, T> |
| The type of points. | |
Public Member Functions | |
| CatmullRom ()=default | |
| Default constructor. | |
| std::vector< Point_t > | generate (const std::vector< Point_t > &control_points, size_t num_samples) const override |
| Generates a curve based on the given control points. | |
Class for CatmullRom curve interpolation.
| 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). |
Example:
|
inlineoverridevirtual |
Generates a curve based on the given control points.
| control_points | A vector of control points that define the curve. |
| num_samples | The number of samples to generate along the curve. |
Implements Curve< Point, N, T >.