MeshLib C++ Docs
Loading...
Searching...
No Matches
MRGcodeSave.h File Reference
#include "MRMeshFwd.h"
#include "MRIOFilters.h"
#include "MRProgressCallback.h"
#include "MRExpected.h"
#include <filesystem>
#include <iosfwd>
#include <string>

Go to the source code of this file.

Namespaces

namespace  MR
 Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
namespace  MR::GcodeSave

Functions

Expected< void > MR::GcodeSave::toGcode (const GcodeSource &gcode, const std::filesystem::path &file, ProgressCallback callback={})
 saves G-code commands in *.gcode file (or any text file), one command per line
Expected< void > MR::GcodeSave::toGcode (const GcodeSource &gcode, std::ostream &out, ProgressCallback callback={})
Expected< void > MR::GcodeSave::toAnySupportedFormat (const GcodeSource &gcode, const std::filesystem::path &file, ProgressCallback callback={})
 detects the format from file extension and saves G-code in it
Expected< void > MR::GcodeSave::toAnySupportedFormat (const GcodeSource &gcode, std::ostream &out, const std::string &extension, ProgressCallback callback={})
 extension in *.ext format

Variables

const IOFilters MR::GcodeSave::Filters