Browse Source

Add +1 offset in writeOBJ for hybrid mesh (#1962)

This would keep the behavior the same as the non-hybrid situation.
Haoran SUN 3 years ago
parent
commit
69c662b1fa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/igl/writeOBJ.cpp

+ 1 - 1
include/igl/writeOBJ.cpp

@@ -144,7 +144,7 @@ IGL_INLINE bool igl::writeOBJ(
 
     for(const auto& vi : face)
     {
-      s<<" "<<vi; 
+      s<<" "<<(vi+1); 
     }
     s<<"\n";
   }