Namespace SFCGAL:
:OBJ
Namespace List > SFCGAL > io > OBJ
Public Functions
| Type | Name |
|---|---|
| void | save (const Geometry & geom, std::ostream & out) Saves a geometry to an OBJ format stream. |
| void | save (const Geometry & geom, const std::string & filename) Saves a geometry to an OBJ file. |
| void | saveToBuffer (const Geometry & geom, char * buffer, size_t * size) Saves a geometry to an OBJ format buffer (C API). |
| std::string | saveToString (const Geometry & geom) Saves a geometry to an OBJ format string. |
Public Functions Documentation
function save
Saves a geometry to an OBJ format stream.
void SFCGAL::io::OBJ::save (
const Geometry & geom,
std::ostream & out
)
Parameters:
geomThe geometry to saveoutThe output stream
Exception:
std::runtime_errorIf the geometry is invalid or unsupported
function save
Saves a geometry to an OBJ file.
void SFCGAL::io::OBJ::save (
const Geometry & geom,
const std::string & filename
)
Parameters:
geomThe geometry to savefilenameThe name of the file to save to
Exception:
std::runtime_errorIf the file cannot be opened or the geometry is invalid
function saveToBuffer
Saves a geometry to an OBJ format buffer (C API).
void SFCGAL::io::OBJ::saveToBuffer (
const Geometry & geom,
char * buffer,
size_t * size
)
Parameters:
geomThe geometry to savebufferThe buffer to write tosizeOn input, the size of the buffer. On output, the number of bytes written (or required if buffer is null)
Exception:
std::runtime_errorIf the geometry is invalid or unsupported
function saveToString
Saves a geometry to an OBJ format string.
std::string SFCGAL::io::OBJ::saveToString (
const Geometry & geom
)
Parameters:
geomThe geometry to save
Returns:
The OBJ format string
Exception:
std::runtime_errorIf the geometry is invalid or unsupported
The documentation for this class was generated from the following file /builds/florent_fougeres/SFCGAL/src/io/OBJ.cpp