Namespace SFCGAL::io::VTK
Namespace List > SFCGAL > io > VTK
Public Functions
Type | Name |
---|---|
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. |
void | saveToBuffer (const Geometry & geom, char * buffer, size_t * size) Saves a geometry to a legacy VTK format buffer (C API). |
auto | saveToString (const Geometry & geom) Saves a geometry to a legacy VTK format string. |
Public Functions Documentation
function save
Saves a geometry to a legacy VTK format stream.
void SFCGAL::io::VTK::save (
const Geometry & geom,
std::ostream & out
)
Parameters:
geom
The geometry to saveout
The output stream
Exception:
std::runtime_error
If the geometry is invalid or unsupported
function save
Saves a geometry to a legacy VTK file.
void SFCGAL::io::VTK::save (
const Geometry & geom,
const std::string & filename
)
Parameters:
geom
The geometry to savefilename
The name of the file to save to
Exception:
std::runtime_error
If the file cannot be opened or the geometry is invalid
function saveToBuffer
Saves a geometry to a legacy VTK format buffer (C API).
void SFCGAL::io::VTK::saveToBuffer (
const Geometry & geom,
char * buffer,
size_t * size
)
Parameters:
geom
The geometry to savebuffer
The buffer to write tosize
On input, the size of the buffer. On output, the number of bytes written (or required if buffer is null)
Exception:
std::runtime_error
If the geometry is invalid or unsupported
function saveToString
Saves a geometry to a legacy VTK format string.
auto SFCGAL::io::VTK::saveToString (
const Geometry & geom
)
Parameters:
geom
The geometry to save
Returns:
The legacy VTK format string
Exception:
std::runtime_error
If the geometry is invalid or unsupported
The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/io/vtk.cpp