aboutsummaryrefslogtreecommitdiffstats
path: root/utils/sofa-info.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-12-09 23:11:16 -0800
committerChris Robinson <[email protected]>2019-12-09 23:11:16 -0800
commit47f416efafd751b2a92ed01882f6c4ad3d4c3587 (patch)
tree65e7a7bc420e454e5176f4dd4f0d7b2243c41771 /utils/sofa-info.cpp
parentd6bc56d7c1be87eb7c3bce2f024bf7814dcd6dfa (diff)
Simplify a couple assignments
Diffstat (limited to 'utils/sofa-info.cpp')
-rw-r--r--utils/sofa-info.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/utils/sofa-info.cpp b/utils/sofa-info.cpp
index b7346939..81136334 100644
--- a/utils/sofa-info.cpp
+++ b/utils/sofa-info.cpp
@@ -214,11 +214,9 @@ static void PrintCompatibleLayout(const uint m, const float *xyzs)
auto aers = std::vector<double3>(m, double3{});
for(uint i{0u};i < m;++i)
{
- float aer[3]{xyzs[i*3], xyzs[i*3 + 1], xyzs[i*3 + 2]};
- mysofa_c2s(&aer[0]);
- aers[i][0] = aer[0];
- aers[i][1] = aer[1];
- aers[i][2] = aer[2];
+ float vals[3]{xyzs[i*3], xyzs[i*3 + 1], xyzs[i*3 + 2]};
+ mysofa_c2s(&vals[0]);
+ aers[i] = {vals[0], vals[1], vals[2]};
}
auto radii = GetUniquelySortedElems(aers, 2, {}, {0.1, 0.1, 0.001});