27#ifndef EASY3D_FILEIO_GRAPH_IO_H
28#define EASY3D_FILEIO_GRAPH_IO_H
48 static Graph*
load(
const std::string& file_name);
57 static bool save(
const std::string& file_name,
const Graph* graph);
78 bool save_ply(
const std::string& file_name,
const Graph* graph,
bool binary =
true);
A Graph data structure with easy property management.
Definition: graph.h:51
Implementation of file input/output operations for Graph (Currently only PLY format is supported).
Definition: graph_io.h:41
static Graph * load(const std::string &file_name)
Reads a graph from file file_name.
Definition: graph_io.cpp:37
static bool save(const std::string &file_name, const Graph *graph)
Saves graph to file file_name.
Definition: graph_io.cpp:72
bool save_ply(const std::string &file_name, const Graph *graph, bool binary=true)
Saves graph into a PLY file file_name.
Definition: graph_io_ply.cpp:245
bool load_ply(const std::string &file_name, Graph *graph)
Loads graph from a PLY file file_name.
Definition: graph_io_ply.cpp:89
Definition: collider.cpp:182