CardinalSplines.h
Go to the documentation of this file.
// This file is a part of the OpenSurgSim project.
// Copyright 2013-2016, SimQuest Solutions Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SURGSIM_MATH_CARDINALSPLINES_H
#define SURGSIM_MATH_CARDINALSPLINES_H
#include <vector>
#include "SurgSim/DataStructures/Vertices.h"
#include "SurgSim/Math/Vector.h"
namespace SurgSim
{
namespace Math
{
namespace CardinalSplines
{
void extendControlPoints(const SurgSim::DataStructures::VerticesPlain& points,
std::vector<SurgSim::Math::Vector3d>* result);
void interpolate(size_t subdivisions,
const std::vector<Math::Vector3d>& controlPoints,
std::vector<Math::Vector3d>* points,
double tau = 0.4);
}; // namespace CardinalSplines
}; // namespace Math
}; // namespace SurgSim
#endif // SURGSIM_MATH_CARDINALSPLINES_H
SurgSim
Definition: CompoundShapeToGraphics.cpp:29
Vertices.h
SurgSim::Math::CardinalSplines::interpolate
void interpolate(size_t subdivisions, const std::vector< SurgSim::Math::Vector3d > &controlPoints, std::vector< SurgSim::Math::Vector3d > *points, double tau)
Run Cardinal Splines interpolation on &#39;controlPoints&#39;.
Definition: CardinalSplines.cpp:45
Vector.h
Definitions of small fixed-size vector types.
SurgSim::DataStructures::Vertices
Base class for mesh structures, handling basic vertex functionality.
Definition: Vertices.h:51
SurgSim::Math::CardinalSplines::extendControlPoints
void extendControlPoints(const SurgSim::DataStructures::VerticesPlain &points, std::vector< SurgSim::Math::Vector3d > *result)
Function to add two &#39;ghost&#39; points to &#39;points&#39; at the beginning and the end, prepare &#39;points&#39; for Car...
Definition: CardinalSplines.cpp:26