Эх сурвалжийг харах

Merge pull request #535 from jdumas/master

Add version information with VRML.

Former-commit-id: 3abd9ae411cb642b8f3cd7c925acb4dbfedc7ff9
Daniele Panozzo 8 жил өмнө
parent
commit
9428d6049b

+ 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 [