Chaste Commit::ca8ccdedf819b6e02855bc0e8e6f50bdecbc5208
|
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().