Skip to content

Commit

Permalink
Merge pull request #1432 from zenustech/fix-cpp-wirte
Browse files Browse the repository at this point in the history
Fix cpp wirte
  • Loading branch information
littlemine authored Sep 20, 2023
2 parents b969007 + 26ea7d2 commit 401194b
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::setprecision(8);
for (auto const &[x, y, z]: prim->verts) {
fout << "v " << x << ' ' << y << ' ' << z << '\n';
}
Expand Down

0 comments on commit 401194b

Please sign in to comment.