MCPcopy Create free account
hub / github.com/blender/cycles / xml_read_float3_array

Function xml_read_float3_array

src/app/cycles_xml.cpp:126–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126static bool xml_read_float3_array(vector<float3> &value, const xml_node node, const char *name)
127{
128 vector<float> array;
129
130 if (xml_read_float_array(array, node, name)) {
131 for (size_t i = 0; i < array.size(); i += 3) {
132 value.push_back(make_float3(array[i + 0], array[i + 1], array[i + 2]));
133 }
134
135 return true;
136 }
137
138 return false;
139}
140
141static bool xml_read_float4(float4 *value, const xml_node node, const char *name)
142{

Callers 1

xml_read_meshFunction · 0.85

Calls 3

xml_read_float_arrayFunction · 0.70
make_float3Function · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected