Chaste Commit::baa90ac2819b962188b7562f2326be23c47859a7
|
Go to the source code of this file.
Functions | |
template<std::size_t DIM> | |
std::vector< c_vector< double, DIM > > | EvenlySpaceAlongPath (std::vector< c_vector< double, DIM > > &path, bool closedPath, bool permuteOrder, std::size_t numPointsToPlace, double targetSpacing=DBL_MAX) |
This file contains utility functions for mesh operations.
Definition in file MeshUtilityFunctions.hpp.
std::vector< c_vector< double, DIM > > EvenlySpaceAlongPath | ( | std::vector< c_vector< double, DIM > > & | path, |
bool | closedPath, | ||
bool | permuteOrder, | ||
std::size_t | numPointsToPlace, | ||
double | targetSpacing = DBL_MAX |
||
) |
Evenly space a number of points along a given path so that the distance (along the path) between each two consecutive output points is identical.
DIM | the space dimension of the path vertices |
path | a vector of vertices defining the existing path along which to distribute points |
closedPath | whether the path forms a closed polygon |
permuteOrder | whether to randomly permute the input vertices, if the path is closed |
numPointsToPlace | the number of points to distribute evenly along the path |
targetSpacing | the target distance (along the path) between output points. If set, this overrides numPointsToPlace. |
Definition at line 44 of file MeshUtilityFunctions.cpp.
References RandomNumberGenerator::Instance(), and RandomNumberGenerator::randMod().