Skip to content

Namespace SFCGAL::io::OBJ#

Namespace List > io > OBJ

OBJ file format tools.

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).
auto 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 io::OBJ::save (
    const Geometry & geom,
    std::ostream & out
) 

Parameters:

  • geom The geometry to save
  • out The output stream

Exception:


function save#

Saves a geometry to an OBJ file.

void io::OBJ::save (
    const Geometry & geom,
    const std::string & filename
) 

Parameters:

  • geom The geometry to save
  • filename The name of the file to save to

Exception:


function saveToBuffer#

Saves a geometry to an OBJ format buffer (C API).

void io::OBJ::saveToBuffer (
    const Geometry & geom,
    char * buffer,
    size_t * size
) 

Parameters:

  • geom The geometry to save
  • buffer The buffer to write to
  • size On input, the size of the buffer. On output, the number of bytes written (or required if buffer is null)

Exception:


function saveToString#

Saves a geometry to an OBJ format string.

auto io::OBJ::saveToString (
    const Geometry & geom
) 

Parameters:

  • geom The geometry to save

Returns:

The OBJ format string

Exception:



The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/io/OBJ.cpp