ithron / CortidQCT

A tool for automatic cortical shape identification for QCT scans
Academic Free License v3.0
2 stars 0 forks source link

Fix: std::vector initialized with too many elements #72

Closed ithron closed 4 years ago

ithron commented 4 years ago

state.vertexNormals was initialized with 3 * nVertices, but vertexNormals is actually a std::vector of std::array<3, float> so that its size was three times too large. This resulted in an assertion failure when copying over the vertex normals from the mesh. This fixes issue #71.