libigl v2.5.0
Loading...
Searching...
No Matches
fit_cubic_bezier.h File Reference
#include "igl_inline.h"
#include <Eigen/Core>
#include <vector>
#include "fit_cubic_bezier.cpp"

Go to the source code of this file.

Namespaces

namespace  igl
 

Functions

void igl::fit_cubic_bezier (const Eigen::MatrixXd &d, const double error, std::vector< Eigen::MatrixXd > &cubics)
 Fit a cubic bezier spline (G1 continuous) to an ordered list of input points in any dimension, according to "An algorithm for automatically fitting digitized curves" [Schneider 1990].
 
void igl::fit_cubic_bezier_substring (const Eigen::MatrixXd &d, const int first, const int last, const Eigen::RowVectorXd &tHat1, const Eigen::RowVectorXd &tHat2, const double error, const bool force_split, std::vector< Eigen::MatrixXd > &cubics)
 Recursive helper function for fit_cubic_bezier.