MCPcopy Create free account
hub / github.com/Kitware/VTK / AddTextureInfoToFieldData

Function AddTextureInfoToFieldData

IO/Geometry/vtkGLTFReader.cxx:96–105  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

94
95//------------------------------------------------------------------------------
96void AddTextureInfoToFieldData(const std::string& prefix, int textureIndex, int textureCoordIndex,
97 vtkSmartPointer<vtkFieldData> fieldData, std::vector<float> multiplier = std::vector<float>())
98{
99 AddIntegerToFieldData(prefix + "TextureIndex", textureIndex, fieldData);
100 if (multiplier.size() == 3 || multiplier.size() == 4)
101 {
102 AddVecNfToFieldData(prefix + "Multiplier", multiplier, fieldData);
103 }
104 AddIntegerToFieldData(prefix + "TexCoordIndex", textureCoordIndex, fieldData);
105}
106
107//------------------------------------------------------------------------------
108void AddMaterialToFieldData(int materialId, vtkSmartPointer<vtkFieldData> fieldData,

Callers 1

AddMaterialToFieldDataFunction · 0.85

Calls 3

AddIntegerToFieldDataFunction · 0.85
AddVecNfToFieldDataFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected