SplineUtils::point: pass spline as const
This commit is contained in:
parent
0f93b98fce
commit
7ebdd7acab
@ -42,7 +42,7 @@ Vec4 SplineUtils::toVec4 (const Go::Point& X, Real time,
|
||||
}
|
||||
|
||||
|
||||
void SplineUtils::point (Vec3& X, double u, Go::SplineCurve* curve)
|
||||
void SplineUtils::point (Vec3& X, double u, const Go::SplineCurve* curve)
|
||||
{
|
||||
Go::Point Y;
|
||||
#pragma omp critical
|
||||
@ -51,7 +51,7 @@ void SplineUtils::point (Vec3& X, double u, Go::SplineCurve* curve)
|
||||
}
|
||||
|
||||
|
||||
void SplineUtils::point (Vec3& X, double u, double v, Go::SplineSurface* surf)
|
||||
void SplineUtils::point (Vec3& X, double u, double v, const Go::SplineSurface* surf)
|
||||
{
|
||||
Go::Point Y;
|
||||
#pragma omp critical
|
||||
@ -61,7 +61,7 @@ void SplineUtils::point (Vec3& X, double u, double v, Go::SplineSurface* surf)
|
||||
|
||||
|
||||
void SplineUtils::point (Vec3& X, double u, double v, double w,
|
||||
Go::SplineVolume* vol)
|
||||
const Go::SplineVolume* vol)
|
||||
{
|
||||
Go::Point Y;
|
||||
#pragma omp critical
|
||||
|
@ -42,11 +42,11 @@ namespace SplineUtils //! Various utility functions on spline objects.
|
||||
const double* u = nullptr);
|
||||
|
||||
//! \brief Evaluates given spline curve at a parametric point.
|
||||
void point(Vec3& X, double u, Go::SplineCurve* curve);
|
||||
void point(Vec3& X, double u, const Go::SplineCurve* curve);
|
||||
//! \brief Evaluates given spline surface at a parametric point.
|
||||
void point(Vec3& X, double u, double v, Go::SplineSurface* surf);
|
||||
void point(Vec3& X, double u, double v, const Go::SplineSurface* surf);
|
||||
//! \brief Evaluates given spline colume at a parametric point.
|
||||
void point(Vec3& X, double u, double v, double w, Go::SplineVolume* vol);
|
||||
void point(Vec3& X, double u, double v, double w, const Go::SplineVolume* vol);
|
||||
|
||||
//! \brief Establishes matrices with basis functions and 1st derivatives.
|
||||
void extractBasis(const Go::BasisDerivsSf& spline,
|
||||
|
Loading…
Reference in New Issue
Block a user