Easy3D 2.6.1
|
Class for Bezier curve fitting. More...
#include <easy3d/core/curve.h>
Public Types | |
using | Point_t = Point<N, T> |
The type of points. | |
![]() | |
using | Point_t = Point<N, T> |
The type of points. | |
Public Member Functions | |
Bezier ()=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 Bezier curve fitting.
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 >.