From b55c937ecba6e69b04e3cfa641deb2a19d4b5fa2 Mon Sep 17 00:00:00 2001 From: zhouhang95 <765229842@qq.com> Date: Tue, 12 Sep 2023 15:12:09 +0800 Subject: [PATCH] fix-cpp-wirte --- zeno/src/nodes/neo/WriteObjPrim.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zeno/src/nodes/neo/WriteObjPrim.cpp b/zeno/src/nodes/neo/WriteObjPrim.cpp index fe96255b1e..e297e621f4 100644 --- a/zeno/src/nodes/neo/WriteObjPrim.cpp +++ b/zeno/src/nodes/neo/WriteObjPrim.cpp @@ -13,12 +13,14 @@ #include #include #include +#include namespace zeno { namespace { void dump_obj(PrimitiveObject *prim, std::ostream &fout) { fout << "# https://github.com/zenustech/zeno\n"; + fout << std::setiosflags(std::ios::fixed) << std::setprecision(6); for (auto const &[x, y, z]: prim->verts) { fout << "v " << x << ' ' << y << ' ' << z << '\n'; }