compile static build, templates, missing inlcudes

This commit is contained in:
Alec Jacobson
2015-12-19 10:38:23 -05:00
parent bee828aa53
commit 3de5c820e1
7 changed files with 36 additions and 18 deletions
+16 -16
View File
@@ -8,22 +8,22 @@
Eigen::MatrixXd V;
Eigen::MatrixXi F;
//// derive from igl::Serializable to serialize your own type
//struct State : public igl::Serializable
//{
// Eigen::MatrixXd V;
// Eigen::MatrixXi F;
// std::vector<int> ids;
//
// // You have to define this function to
// // register the fields you want to serialize
// void InitSerialization()
// {
// this->Add(V , "V");
// this->Add(F , "F");
// this->Add(ids, "ids");
// }
//};
// derive from igl::Serializable to serialize your own type
struct State : public igl::Serializable
{
Eigen::MatrixXd V;
Eigen::MatrixXi F;
std::vector<int> ids;
// You have to define this function to
// register the fields you want to serialize
void InitSerialization()
{
this->Add(V , "V");
this->Add(F , "F");
this->Add(ids, "ids");
}
};
//// alternatively you can do it like the following to have
//// a non-intrusive serialization: