瀏覽代碼

Add version information with VRML.

Former-commit-id: 8d1906d6eb6150991997d1db8eb4adc0977713df
Jérémie Dumas 8 年之前
父節點
當前提交
5cb0ae5642
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/igl/writeWRL.cpp

+ 2 - 2
include/igl/writeWRL.cpp

@@ -29,7 +29,7 @@ IGL_INLINE bool igl::writeWRL(
   FF.leftCols(3) = F;
   FF.col(3).setConstant(-1);
 
-  s<<R"(
+  s<<R"(#VRML V2.0 utf8
 DEF default Transform {
 translation 0 0 0
 children [
@@ -81,7 +81,7 @@ IGL_INLINE bool igl::writeWRL(
   double rgbScale = (C.maxCoeff() <= 1.0)?1.0:1.0/255.0;
   Eigen::MatrixXd RGB = rgbScale * C;
 
-  s<<R"(
+  s<<R"(#VRML V2.0 utf8
 DEF default Transform {
 translation 0 0 0
 children [