File ControlPolygonGenerator.h

Copyright

This code is licensed under the 3-clause BSD license.

Copyright ETH Zurich, Laboratory for Physical Chemistry, Reiher Group.

See LICENSE.txt for details.

namespace Scine

This header file contains functions that allow for common notation for common things that can be done at a different degree of derivatives.

This header contains alias definitions defining which classes to use for the different degrees of derivatives.

namespace Utils
namespace BSplines
class ControlPolygonGenerator : public Scine::Utils::BSplines::Generator
#include <ControlPolygonGenerator.h>

Generates a B-spline curve from a set of data points that are used as control points.

Public Functions

ControlPolygonGenerator(const Eigen::Ref<const Eigen::MatrixXd> &dataPoints, unsigned degree = 3, bool uniformKnotVector = false)

Private Functions

Eigen::VectorXd generateKnotVector()
Eigen::MatrixXd generateControlPoints()

Private Members

bool uniformKnotVector_