libigl v2.5.0
Loading...
Searching...
No Matches
fit_cubic_bezier.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2020 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef FIT_CUBIC_BEZIER_H
9#define FIT_CUBIC_BEZIER_H
10#include "igl_inline.h"
11#include <Eigen/Core>
12#include <vector>
13namespace igl
14{
25 const Eigen::MatrixXd & d,
26 const double error,
27 std::vector<Eigen::MatrixXd> & cubics);
41 const Eigen::MatrixXd & d,
42 const int first,
43 const int last,
44 const Eigen::RowVectorXd & tHat1,
45 const Eigen::RowVectorXd & tHat2,
46 const double error,
47 const bool force_split,
48 std::vector<Eigen::MatrixXd> & cubics);
49}
50
51#ifndef IGL_STATIC_LIBRARY
52#include "fit_cubic_bezier.cpp"
53#endif
54
55#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void 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.
void 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,...