MCPcopy Create free account
hub / github.com/BIMCoderLiang/LNLib / GetKnotMultiplicityMap

Method GetKnotMultiplicityMap

src/LNLib/Algorithm/KnotVectorUtils.cpp:122–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122std::map<double, int> LNLib::KnotVectorUtils::GetKnotMultiplicityMap(const std::vector<double>& knotVector)
123{
124 std::map<double, int> result;
125
126 for (double knot : knotVector) {
127
128 ++result[knot];
129 }
130
131 return result;
132}
133
134std::map<double, int> LNLib::KnotVectorUtils::GetInternalKnotMultiplicityMap(const std::vector<double>& knotVector)
135{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected