소스 검색

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