diff --git a/thirdparty/simpleuv/simpleuv/triangulate.cpp b/thirdparty/simpleuv/simpleuv/triangulate.cpp index f4758d98..1e4b7ea9 100644 --- a/thirdparty/simpleuv/simpleuv/triangulate.cpp +++ b/thirdparty/simpleuv/simpleuv/triangulate.cpp @@ -51,7 +51,7 @@ static bool pointInTriangle(const Eigen::Vector3d &a, const Eigen::Vector3d &b, static Eigen::Vector3d ringNorm(const std::vector &vertices, const std::vector &ring) { - Eigen::Vector3d normal; + Eigen::Vector3d normal(0.0, 0.0, 0.0); for (size_t i = 0; i < ring.size(); ++i) { auto j = (i + 1) % ring.size(); auto k = (i + 2) % ring.size();