https://mooseframework.inl.gov
Namespaces | Functions
SplineUtils.C File Reference

Go to the source code of this file.

Namespaces

 SplineUtils
 Utilities useful for splines in general Reference for B-Spline implementation: https://mat.fsv.cvut.cz/gcg/sbornik/prochazkova.pdf.
 

Functions

std::vector< Point > SplineUtils::circularControlPoints (const libMesh::Point &start_point, const libMesh::Point &end_point, const libMesh::RealVectorValue &parallel_direction, const unsigned int num_cps)
 Creates control points for the special case of parallel lines using an interpolating circle. More...
 
std::vector< Point > SplineUtils::bSplineControlPoints (const libMesh::Point &start_point, const libMesh::Point &end_point, const libMesh::RealVectorValue &start_direction, const libMesh::RealVectorValue &end_direction, const unsigned int cps_per_half, const libMesh::Real sharpness)
 Creates control points for an open uniform BSpline. More...
 
std::vector< Point > SplineUtils::controlPointsAlongLine (const libMesh::Point &start_point, const libMesh::Point &end_point, const libMesh::RealVectorValue &direction_vector, const libMesh::Real sharpness, const unsigned int num_cps, const bool reverse_order=false)
 Creates control points along an extrapolated line up to a certain intercept. More...
 
libMesh::Point SplineUtils::makeControlPoint (const libMesh::Point &start_point, const libMesh::Point &end_point, const libMesh::RealVectorValue &direction_vector, const libMesh::Real sharpness)
 Creates a control point. More...
 
std::pair< Point, Point > SplineUtils::closestPoints (const libMesh::Point &point_1, const libMesh::Point &point_2, const libMesh::RealVectorValue &direction_1, const libMesh::RealVectorValue &direction_2)
 Determines the two points defining the shortest line segment between two lines in space. More...