SFCGAL 2.0.0
|
Functions | |
void | save (const Geometry &geom, std::ostream &out) |
Saves a geometry to a legacy VTK format stream. | |
void | save (const Geometry &geom, const std::string &filename) |
Saves a geometry to a legacy VTK file. | |
auto | saveToString (const Geometry &geom) |
Saves a geometry to a legacy VTK format string. | |
void | saveToBuffer (const Geometry &geom, char *buffer, size_t *size) |
Saves a geometry to a legacy VTK format buffer (C API). |
SFCGAL_API void SFCGAL::io::VTK::save | ( | const Geometry & | geom, |
const std::string & | filename ) |
Saves a geometry to a legacy VTK file.
[in] | geom | The geometry to save |
[in] | filename | The name of the file to save to |
std::runtime_error | If the file cannot be opened or the geometry is invalid |
SFCGAL_API void SFCGAL::io::VTK::save | ( | const Geometry & | geom, |
std::ostream & | out ) |
Saves a geometry to a legacy VTK format stream.
[in] | geom | The geometry to save |
[out] | out | The output stream |
std::runtime_error | If the geometry is invalid or unsupported |
SFCGAL_API void SFCGAL::io::VTK::saveToBuffer | ( | const Geometry & | geom, |
char * | buffer, | ||
size_t * | size ) |
Saves a geometry to a legacy VTK format buffer (C API).
[in] | geom | The geometry to save |
[out] | buffer | The buffer to write to |
[in,out] | size | On input, the size of the buffer. On output, the number of bytes written (or required if buffer is null) |
std::runtime_error | If the geometry is invalid or unsupported |