MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::gcode_save Namespace Reference

Functions

auto to_gcode_std_filesystem_path (gcode:&meshlib::std_vector_std_string, file:&str, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_gcode_std_ostream (gcode:&meshlib::std_vector_std_string, out:&mut meshlib::std_ostream, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_any_supported_format_3 (gcode:&meshlib::std_vector_std_string, file:&str, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_any_supported_format_4 (gcode:&meshlib::std_vector_std_string, out:&mut meshlib::std_ostream, extension:&str, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >

Function Documentation

◆ to_any_supported_format_3()

auto meshlib::gcode_save::to_any_supported_format_3 ( gcode:&meshlib::std_vector_std_string ,
file:& str,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

detects the format from file extension and saves G-code in it Generated from function MR::GcodeSave::toAnySupportedFormat.

Calls MR_GcodeSave_toAnySupportedFormat_3().

◆ to_any_supported_format_4()

auto meshlib::gcode_save::to_any_supported_format_4 ( gcode:&meshlib::std_vector_std_string ,
out:&mut meshlib::std_ostream ,
extension:& str,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

extension in *.ext format Generated from function MR::GcodeSave::toAnySupportedFormat.

Calls MR_GcodeSave_toAnySupportedFormat_4().

◆ to_gcode_std_filesystem_path()

auto meshlib::gcode_save::to_gcode_std_filesystem_path ( gcode:&meshlib::std_vector_std_string ,
file:& str,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

saves G-code commands in *.gcode file (or any text file), one command per line Generated from function MR::GcodeSave::toGcode.

Calls MR_GcodeSave_toGcode_std_filesystem_path().

◆ to_gcode_std_ostream()

auto meshlib::gcode_save::to_gcode_std_ostream ( gcode:&meshlib::std_vector_std_string ,
out:&mut meshlib::std_ostream ,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::GcodeSave::toGcode.

Calls MR_GcodeSave_toGcode_std_ostream().