Skip to content

Commit

Permalink
fix-cpp-wirte
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhang95 committed Sep 12, 2023
1 parent 3898901 commit b55c937
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zeno/src/nodes/neo/WriteObjPrim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@
#include <cassert>
#include <cstdio>
#include <fstream>
#include <iomanip>

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';
}
Expand Down

0 comments on commit b55c937

Please sign in to comment.