MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / SetWeights

Method SetWeights

GTE/Graphics/MorphController.cpp:44–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void MorphController::SetWeights(size_t key, std::vector<float> const& weights)
45{
46 LogAssert(key < mNumTimes && weights.size() >= mNumTargets,
47 "Invalid key or input weights array is too small.");
48 std::copy(weights.begin(), weights.end(), mWeights.begin() + key * mNumTargets);
49}
50
51void MorphController::GetVertices(size_t target, std::vector<Vector3<float>>& vertices)
52{

Callers 1

CreateSceneMethod · 0.80

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected