libigl v2.5.0
Loading...
Searching...
No Matches
cubic_split.h
Go to the documentation of this file.
1#ifndef IGL_CUBIC_SPLIT_H
2#define IGL_CUBIC_SPLIT_H
3#include "igl_inline.h"
4#include <Eigen/Core>
5
6namespace igl
7{
21 template <
22 typename DerivedC,
23 typename DerivedK>
25 const Eigen::MatrixBase<DerivedC>& C,
26 const typename DerivedC::Scalar & t,
27 Eigen::PlainObjectBase<DerivedK>& C01,
28 Eigen::PlainObjectBase<DerivedK>& C012,
29 Eigen::PlainObjectBase<DerivedK>& C0123,
30 Eigen::PlainObjectBase<DerivedK>& C123,
31 Eigen::PlainObjectBase<DerivedK>& C23);
37 template <
38 typename DerivedC,
39 typename DerivedK>
41 const Eigen::MatrixBase<DerivedC>& C,
42 const typename DerivedC::Scalar & t,
43 Eigen::PlainObjectBase<DerivedK>& C1,
44 Eigen::PlainObjectBase<DerivedK>& C2);
45}
46
47#ifndef IGL_STATIC_LIBRARY
48# include "cubic_split.cpp"
49#endif
50
51#endif
52
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:18
void cubic_split(const Eigen::MatrixBase< DerivedC > &C, const typename DerivedC::Scalar &t, Eigen::PlainObjectBase< DerivedK > &C01, Eigen::PlainObjectBase< DerivedK > &C012, Eigen::PlainObjectBase< DerivedK > &C0123, Eigen::PlainObjectBase< DerivedK > &C123, Eigen::PlainObjectBase< DerivedK > &C23)
Splits a cubic Bézier curve defined by control points C at parameter t into two cubic Bézier curves d...