Skip to content

File OBJ.h

File List > io > OBJ.h

Go to the documentation of this file

// Copyright (c) 2024-2024, Oslandia.
// SPDX-License-Identifier: LGPL-2.0-or-later

#ifndef _SFCGAL_IO_OBJ_H_
#define _SFCGAL_IO_OBJ_H_

#include <SFCGAL/Geometry.h>
#include <ostream>
#include <string>

namespace SFCGAL {
namespace io {
namespace OBJ {

SFCGAL_API void
save(const Geometry &geom, std::ostream &out);

SFCGAL_API void
save(const Geometry &geom, const std::string &filename);

SFCGAL_API std::string
           saveToString(const Geometry &geom);

SFCGAL_API void
saveToBuffer(const Geometry &geom, char *buffer, size_t *size);

} // namespace OBJ
} // namespace io
} // namespace SFCGAL

#endif