Skip to content

Namespace SFCGAL::io::STL#

Namespace List > io > STL

Public Functions#

Type Name
auto normalizeKernelValue (const T & value)
auto normalizeZeroString (const std::string & str)
auto save (const Geometry & geom, std::ostream & out)
Saves a geometry to an STL format stream.
auto save (const Geometry & geom, const std::string & filename)
Saves a geometry to an STL file.
auto saveToBuffer (const Geometry & geom, char * buffer, size_t * size)
Saves a geometry to an STL format buffer (C API).
auto saveToString (const Geometry & geom)
Saves a geometry to an STL format string.

Public Functions Documentation#

function normalizeKernelValue#

template<typename T>
auto io::STL::normalizeKernelValue (
    const T & value
) 

function normalizeZeroString#

auto io::STL::normalizeZeroString (
    const std::string & str
) 

function save#

Saves a geometry to an STL format stream.

auto io::STL::save (
    const Geometry & geom,
    std::ostream & out
) 

Parameters:

  • geom The geometry to save
  • out The output stream

Exception:

  • std::runtime_error If the geometry is invalid or unsupported

function save#

Saves a geometry to an STL file.

auto io::STL::save (
    const Geometry & geom,
    const std::string & filename
) 

Parameters:

  • geom The geometry to save
  • filename 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 an STL format buffer (C API).

auto io::STL::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:

  • std::runtime_error If the geometry is invalid or unsupported

function saveToString#

Saves a geometry to an STL format string.

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

Parameters:

  • geom The geometry to save

Returns:

The STL 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/STL.cpp