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

Method GetInternalKnotMultiplicityMap

src/LNLib/Algorithm/KnotVectorUtils.cpp:134–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134std::map<double, int> LNLib::KnotVectorUtils::GetInternalKnotMultiplicityMap(const std::vector<double>& knotVector)
135{
136 auto result = GetKnotMultiplicityMap(knotVector);
137 if (!result.empty())
138 {
139 result.erase(result.begin());
140 auto lastElementIterator = prev(result.end(), 1);
141 result.erase(lastElementIterator);
142 }
143 return result;
144}
145
146void LNLib::KnotVectorUtils::GetInsertedKnotElement(const std::vector<double>& knotVector0, const std::vector<double>& knotVector1, std::vector<double>& insertElements0, std::vector<double>& insertElements1)
147{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected