| libigl v2.5.0
    | 
| Namespaces | |
| namespace | serialization_xml | 
| Classes | |
| class | XMLSerializable | 
| struct | XMLSerializableBase | 
| Functions | |
| template<typename T > | |
| void | serialize_xml (const T &obj, const std::string &objectName, const std::string &filename, bool binary=false, bool overwrite=false) | 
| Serialize object to file. | |
| template<typename T > | |
| void | serialize_xml (const T &obj, const std::string &filename) | 
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| template<typename T > | |
| void | serialize_xml (const T &obj, const std::string &objectName, tinyxml2::XMLDocument *doc, tinyxml2::XMLElement *element, bool binary=false) | 
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| template<typename T > | |
| void | deserialize_xml (T &obj, const std::string &objectName, const std::string &filename) | 
| deserialize object to file | |
| template<typename T > | |
| void | deserialize_xml (T &obj, const std::string &filename) | 
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.include/igl/xml/serialize_xml.h. | |
| template<typename T > | |
| void | deserialize_xml (T &obj, const std::string &objectName, const tinyxml2::XMLDocument *doc, const tinyxml2::XMLElement *element) | 
| Deserialize to xml doc. | |
| template<typename DerivedV , typename DerivedF > | |
| bool | write_triangle_mesh (const std::string str, const Eigen::PlainObjectBase< DerivedV > &V, const Eigen::PlainObjectBase< DerivedF > &F, const FileEncoding fe=FileEncoding::Ascii) | 
| write mesh to a file with automatic detection of file format. | |
| template<typename DerivedV , typename DerivedF > | |
| bool | writeDAE (const std::string &filename, const Eigen::PlainObjectBase< DerivedV > &V, const Eigen::PlainObjectBase< DerivedF > &F) | 
| Write a mesh to a Collada .dae scene file. | |
| void igl::xml::serialize_xml | ( | const T & | obj, | 
| const std::string & | objectName, | ||
| const std::string & | filename, | ||
| bool | binary = false, | ||
| bool | overwrite = false | ||
| ) | 
Serialize object to file.
| T | type of the object to serialize | 
| [in] | obj | object to serialize | 
| [in] | filename | name of the file containing the serialization Serialize object to file | 
| T | type of the object to serialize | 
| [in] | obj | object to serialize | 
| [in] | objectName | unique object name,used for the identification | 
| [in] | filename | name of the file containing the serialization | 
| [in] | binary | set to true to serialize the object in binary format (faster for big data) | 
| [in] | overwrite | set to true to overwrite an existing xml file | 
| void igl::xml::serialize_xml | ( | const T & | obj, | 
| const std::string & | filename | ||
| ) | 
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void igl::xml::serialize_xml | ( | const T & | obj, | 
| const std::string & | objectName, | ||
| tinyxml2::XMLDocument * | doc, | ||
| tinyxml2::XMLElement * | element, | ||
| bool | binary = false | ||
| ) | 
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| [in,out] | doc | contains current tinyxml2 virtual representation of the xml data | 
| [in,out] | element | tinyxml2 virtual representation of the current xml node | 
| void igl::xml::deserialize_xml | ( | T & | obj, | 
| const std::string & | objectName, | ||
| const std::string & | filename | ||
| ) | 
deserialize object to file
| T | type of the object to serialize | 
| [in] | obj | object to serialize | 
| [in] | objectName | unique object name,used for the identification | 
| [in] | filename | name of the file containing the serialization | 
| [in] | binary | set to true to serialize the object in binary format (faster for big data) | 
| [in] | overwrite | set to true to overwrite an existing xml file | 
| void igl::xml::deserialize_xml | ( | T & | obj, | 
| const std::string & | filename | ||
| ) | 
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.include/igl/xml/serialize_xml.h.
| void igl::xml::deserialize_xml | ( | T & | obj, | 
| const std::string & | objectName, | ||
| const tinyxml2::XMLDocument * | doc, | ||
| const tinyxml2::XMLElement * | element | ||
| ) | 
Deserialize to xml doc.
| [in,out] | doc | contains current tinyxml2 virtual representation of the xml data | 
| [in,out] | element | tinyxml2 virtual representation of the current xml node | 
| bool igl::xml::write_triangle_mesh | ( | const std::string | str, | 
| const Eigen::PlainObjectBase< DerivedV > & | V, | ||
| const Eigen::PlainObjectBase< DerivedF > & | F, | ||
| const FileEncoding | fe = FileEncoding::Ascii | ||
| ) | 
write mesh to a file with automatic detection of file format.
supported: dae, or any of the formats supported by igl::write_triangle_mesh
| Scalar | type for positions and vectors (will be read as double and cast to Scalar) | 
| Index | type for indices (will be read as int and cast to Index) | 
| [in] | str | path to file | 
| [in] | V | eigen double matrix #V by 3 | 
| [in] | F | eigen int matrix #F by 3 | 
| bool igl::xml::writeDAE | ( | const std::string & | filename, | 
| const Eigen::PlainObjectBase< DerivedV > & | V, | ||
| const Eigen::PlainObjectBase< DerivedF > & | F | ||
| ) | 
Write a mesh to a Collada .dae scene file.
The resulting scene contains a single "geometry" suitable for solid operaions (boolean union, intersection, etc.) in SketchUp.
| [in] | filename | path to .dae file | 
| [in] | V | #V by 3 list of vertex positions | 
| [in] | F | #F by 3 list of face indices |