|
@@ -91,6 +91,26 @@ IGL_INLINE Eigen::IOFormat igl::matlab_format()
|
|
|
"\n];");
|
|
|
}
|
|
|
|
|
|
+IGL_INLINE const std::string igl::matlab_format(
|
|
|
+ const double v,
|
|
|
+ const std::string name)
|
|
|
+{
|
|
|
+ using namespace std;
|
|
|
+ string prefix = "";
|
|
|
+ if(!name.empty())
|
|
|
+ {
|
|
|
+ prefix = name + " = ";
|
|
|
+ }
|
|
|
+ return STR(prefix<<v<<";");
|
|
|
+}
|
|
|
+
|
|
|
+IGL_INLINE const std::string igl::matlab_format(
|
|
|
+ const float v,
|
|
|
+ const std::string name)
|
|
|
+{
|
|
|
+ return matlab_format(double(v),name);
|
|
|
+}
|
|
|
+
|
|
|
#ifdef IGL_STATIC_LIBRARY
|
|
|
// Explicit template instantiation
|
|
|
// generated by autoexplicit.sh
|