浏览代码

Merge pull request #535 from jdumas/master

Add version information with VRML.

Former-commit-id: 3abd9ae411cb642b8f3cd7c925acb4dbfedc7ff9
Daniele Panozzo 8 年之前
父节点
当前提交
9428d6049b
共有 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 [