------------------------------------------------------------------------------
| 279 | |
| 280 | //------------------------------------------------------------------------------ |
| 281 | void AddMorphingWeightsToFieldData( |
| 282 | const std::vector<float>& weights, vtkSmartPointer<vtkFieldData> fieldData) |
| 283 | { |
| 284 | vtkNew<vtkFloatArray> weightsArray; |
| 285 | weightsArray->SetName("morphingWeights"); |
| 286 | weightsArray->SetNumberOfValues(static_cast<vtkIdType>(weights.size())); |
| 287 | fieldData->AddArray(weightsArray); |
| 288 | for (unsigned int weightId = 0; weightId < weights.size(); weightId++) |
| 289 | { |
| 290 | weightsArray->SetValue(weightId, weights[weightId]); |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | //------------------------------------------------------------------------------ |
| 295 | void AddInfoToFieldData(const std::vector<float>* morphingWeights, |
no test coverage detected