Classes | |
| struct | BuildItem |
| struct | Offsets |
| struct | ObjectData |
Public Member Functions | |
| bool | save_model_to_file (const std::string &filename, Model &model, const DynamicPrintConfig *config, bool fullpath_sources, const ThumbnailData *thumbnail_data, bool zip64) |
| void | log_errors () |
Protected Member Functions | |
| void | add_error (const std::string &error) |
| void | clear_errors () |
Private Types | |
| typedef std::map< const ModelVolume *, Offsets > | VolumeToOffsetsMap |
| typedef std::vector< BuildItem > | BuildItemsList |
| typedef std::map< int, ObjectData > | IdToObjectDataMap |
Private Member Functions | |
| bool | _save_model_to_file (const std::string &filename, Model &model, const DynamicPrintConfig *config, const ThumbnailData *thumbnail_data) |
| bool | _add_content_types_file_to_archive (mz_zip_archive &archive) |
| bool | _add_thumbnail_file_to_archive (mz_zip_archive &archive, const ThumbnailData &thumbnail_data) |
| bool | _add_relationships_file_to_archive (mz_zip_archive &archive) |
| bool | _add_model_file_to_archive (const std::string &filename, mz_zip_archive &archive, const Model &model, IdToObjectDataMap &objects_data) |
| bool | _add_object_to_model_stream (mz_zip_writer_staged_context &context, unsigned int &object_id, ModelObject &object, BuildItemsList &build_items, VolumeToOffsetsMap &volumes_offsets) |
| bool | _add_mesh_to_object_stream (mz_zip_writer_staged_context &context, ModelObject &object, VolumeToOffsetsMap &volumes_offsets) |
| bool | _add_build_to_model_stream (std::stringstream &stream, const BuildItemsList &build_items) |
| bool | _add_layer_height_profile_file_to_archive (mz_zip_archive &archive, Model &model) |
| bool | _add_layer_config_ranges_file_to_archive (mz_zip_archive &archive, Model &model) |
| bool | _add_sla_support_points_file_to_archive (mz_zip_archive &archive, Model &model) |
| bool | _add_sla_drain_holes_file_to_archive (mz_zip_archive &archive, Model &model) |
| bool | _add_print_config_file_to_archive (mz_zip_archive &archive, const DynamicPrintConfig &config) |
| bool | _add_model_config_file_to_archive (mz_zip_archive &archive, const Model &model, const IdToObjectDataMap &objects_data) |
| bool | _add_custom_gcode_per_print_z_file_to_archive (mz_zip_archive &archive, Model &model, const DynamicPrintConfig *config) |
Private Attributes | |
| bool | m_fullpath_sources { true } |
| bool | m_zip64 { true } |
| std::vector< std::string > | m_errors |
|
private |
|
private |
|
private |
|
private |
References _add_build_to_model_stream(), Slic3r::_3MF_Base::add_error(), BUILD_TAG, ITEM_TAG, OBJECTID_ATTR, PRINTABLE_ATTR, and TRANSFORM_ATTR.
Referenced by _add_build_to_model_stream(), and _add_model_file_to_archive().
|
private |
References _add_content_types_file_to_archive(), Slic3r::_3MF_Base::add_error(), and CONTENT_TYPES_FILE.
Referenced by _add_content_types_file_to_archive(), and _save_model_to_file().
|
private |
References _add_custom_gcode_per_print_z_file_to_archive().
Referenced by _add_custom_gcode_per_print_z_file_to_archive(), and _save_model_to_file().
|
private |
References _add_layer_config_ranges_file_to_archive(), Slic3r::_3MF_Base::add_error(), Slic3r::ModelConfig::keys(), LAYER_CONFIG_RANGES_FILE, Slic3r::Model::objects, Slic3r::ModelConfig::opt_serialize(), and Slic3r::range().
Referenced by _add_layer_config_ranges_file_to_archive(), and _save_model_to_file().
|
private |
References _add_layer_height_profile_file_to_archive(), Slic3r::_3MF_Base::add_error(), count, Slic3r::is_decimal_separator_point(), LAYER_HEIGHTS_PROFILE_FILE, and Slic3r::Model::objects.
Referenced by _add_layer_height_profile_file_to_archive(), and _save_model_to_file().
|
private |
References _add_mesh_to_object_stream(), Slic3r::_3MF_Base::add_error(), Slic3r::cast(), CUSTOM_SEAM_ATTR, CUSTOM_SUPPORTS_ATTR, Slic3r::f(), FUZZY_SKIN_ATTR, Slic3r::is_decimal_separator_point(), MESH_TAG, MMU_SEGMENTATION_ATTR, TRIANGLE_TAG, TRIANGLES_TAG, VERTEX_TAG, and VERTICES_TAG.
Referenced by _add_mesh_to_object_stream(), and _add_object_to_model_stream().
|
private |
References _add_model_config_file_to_archive(), Slic3r::_3MF_Base::add_error(), Slic3r::RepairedMeshErrors::backwards_edges, Slic3r::ModelObject::config, Slic3r::ModelVolume::config, CONFIG_TAG, Slic3r::RepairedMeshErrors::degenerate_facets, Slic3r::RepairedMeshErrors::edges_fixed, Slic3r::RepairedMeshErrors::facets_removed, Slic3r::RepairedMeshErrors::facets_reversed, FIRST_TRIANGLE_ID_ATTR, Slic3r::Geometry::Transformation::get_matrix(), Slic3r::ModelVolume::get_matrix(), ID_ATTR, Slic3r::ModelVolume::Source::input_file, Slic3r::ModelObject::instances, INSTANCESCOUNT_ATTR, Slic3r::ModelVolume::Source::is_converted_from_inches, Slic3r::ModelVolume::Source::is_converted_from_meters, Slic3r::ModelVolume::is_modifier(), Slic3r::ModelVolume::is_precise_seam(), KEY_ATTR, Slic3r::ModelConfig::keys(), LAST_TRIANGLE_ID_ATTR, m_fullpath_sources, MATRIX_KEY, Slic3r::ModelVolume::mesh(), Slic3r::ModelVolume::Source::mesh_offset, MESH_STAT_BACKWARDS_EDGES, MESH_STAT_DEGENERATED_FACETS, MESH_STAT_EDGES_FIXED, MESH_STAT_FACETS_REMOVED, MESH_STAT_FACETS_RESERVED, MESH_TAG, METADATA_TAG, MODEL_CONFIG_FILE, MODIFIER_KEY, Slic3r::ModelObject::name, Slic3r::ModelVolume::name, NAME_KEY, Slic3r::ModelVolume::object, Slic3r::ModelVolume::Source::object_idx, OBJECT_TAG, OBJECT_TYPE, Slic3r::ModelConfig::opt_serialize(), PRECISE_SEAM_CONFIG_PREFIX, PRECISE_SEAM_TYPE_KEY, Slic3r::TriangleMeshStats::repaired_errors, Slic3r::ModelVolume::source, SOURCE_FILE_KEY, SOURCE_IN_INCHES, SOURCE_IN_METERS, SOURCE_OBJECT_ID_KEY, SOURCE_OFFSET_X_KEY, SOURCE_OFFSET_Y_KEY, SOURCE_OFFSET_Z_KEY, SOURCE_VOLUME_ID_KEY, Slic3r::TriangleMesh::stats(), Slic3r::ModelVolume::Source::transform, Slic3r::ModelVolume::type(), TYPE_ATTR, Slic3r::ModelVolume::type_to_string(), VALUE_ATTR, Slic3r::ModelVolume::Source::volume_idx, VOLUME_TAG, VOLUME_TYPE, VOLUME_TYPE_KEY, Slic3r::ModelObject::volumes, Slic3r::xml_escape(), and Slic3r::xml_escape_double_quotes_attribute_value().
Referenced by _add_model_config_file_to_archive(), and _save_model_to_file().
|
private |
References _add_build_to_model_stream(), _add_model_file_to_archive(), _add_object_to_model_stream(), Slic3r::_3MF_Base::add_error(), FDM_SUPPORTS_PAINTING_VERSION, Slic3r::Model::is_fdm_support_painted(), Slic3r::Model::is_mm_painted(), Slic3r::Model::is_seam_painted(), m_zip64, METADATA_TAG, MM_PAINTING_VERSION, MODEL_FILE, MODEL_TAG, Slic3r::Model::objects, Slic3r::reset_stream(), RESOURCES_TAG, SEAM_PAINTING_VERSION, SLIC3RPE_3MF_VERSION, SLIC3RPE_FDM_SUPPORTS_PAINTING_VERSION, SLIC3RPE_MM_PAINTING_VERSION, SLIC3RPE_SEAM_PAINTING_VERSION, VERSION_3MF, and Slic3r::xml_escape().
Referenced by _add_model_file_to_archive(), and _save_model_to_file().
|
private |
References _add_mesh_to_object_stream(), _add_object_to_model_stream(), Slic3r::_3MF_Base::add_error(), COMPONENT_TAG, COMPONENTS_TAG, OBJECT_TAG, and Slic3r::reset_stream().
Referenced by _add_model_file_to_archive(), and _add_object_to_model_stream().
|
private |
References _add_print_config_file_to_archive(), Slic3r::_3MF_Base::add_error(), Slic3r::header_slic3r_generated(), Slic3r::is_decimal_separator_point(), Slic3r::DynamicConfig::keys(), Slic3r::ConfigBase::opt_serialize(), and PRINT_CONFIG_FILE.
Referenced by _add_print_config_file_to_archive(), and _save_model_to_file().
|
private |
References _add_relationships_file_to_archive(), Slic3r::_3MF_Base::add_error(), MODEL_FILE, RELATIONSHIPS_FILE, and THUMBNAIL_FILE.
Referenced by _add_relationships_file_to_archive(), and _save_model_to_file().
|
private |
References _add_sla_drain_holes_file_to_archive(), Slic3r::_3MF_Base::add_error(), count, Slic3r::drain_holes_format_version, Slic3r::is_decimal_separator_point(), Slic3r::normal(), Slic3r::Model::objects, SLA_DRAIN_HOLES_FILE, and Slic3r::string_printf().
Referenced by _add_sla_drain_holes_file_to_archive(), and _save_model_to_file().
|
private |
References _add_sla_support_points_file_to_archive(), Slic3r::_3MF_Base::add_error(), count, Slic3r::is_decimal_separator_point(), Slic3r::Model::objects, SLA_SUPPORT_POINTS_FILE, and Slic3r::support_points_format_version.
Referenced by _add_sla_support_points_file_to_archive(), and _save_model_to_file().
|
private |
References _add_thumbnail_file_to_archive(), Slic3r::_3MF_Base::add_error(), Slic3r::ThumbnailData::height, Slic3r::ThumbnailData::pixels, THUMBNAIL_FILE, and Slic3r::ThumbnailData::width.
Referenced by _add_thumbnail_file_to_archive(), and _save_model_to_file().
|
private |
References _add_content_types_file_to_archive(), _add_custom_gcode_per_print_z_file_to_archive(), _add_layer_config_ranges_file_to_archive(), _add_layer_height_profile_file_to_archive(), _add_model_config_file_to_archive(), _add_model_file_to_archive(), _add_print_config_file_to_archive(), _add_relationships_file_to_archive(), _add_sla_drain_holes_file_to_archive(), _add_sla_support_points_file_to_archive(), _add_thumbnail_file_to_archive(), _save_model_to_file(), Slic3r::_3MF_Base::add_error(), Slic3r::close_zip_writer(), Slic3r::ThumbnailData::is_valid(), and Slic3r::open_zip_writer().
Referenced by _save_model_to_file(), and save_model_to_file().
|
inlineprotectedinherited |
References m_errors.
Referenced by Slic3r::_3MF_Exporter::_add_build_to_model_stream(), Slic3r::_3MF_Exporter::_add_content_types_file_to_archive(), Slic3r::_3MF_Exporter::_add_layer_config_ranges_file_to_archive(), Slic3r::_3MF_Exporter::_add_layer_height_profile_file_to_archive(), Slic3r::_3MF_Exporter::_add_mesh_to_object_stream(), Slic3r::_3MF_Exporter::_add_model_config_file_to_archive(), Slic3r::_3MF_Exporter::_add_model_file_to_archive(), Slic3r::_3MF_Exporter::_add_object_to_model_stream(), Slic3r::_3MF_Exporter::_add_print_config_file_to_archive(), Slic3r::_3MF_Exporter::_add_relationships_file_to_archive(), Slic3r::_3MF_Exporter::_add_sla_drain_holes_file_to_archive(), Slic3r::_3MF_Exporter::_add_sla_support_points_file_to_archive(), Slic3r::_3MF_Exporter::_add_thumbnail_file_to_archive(), Slic3r::_3MF_Importer::_create_object_instance(), Slic3r::_3MF_Importer::_extract_layer_config_ranges_from_archive(), Slic3r::_3MF_Importer::_extract_layer_heights_profile_config_from_archive(), Slic3r::_3MF_Importer::_extract_model_config_from_archive(), Slic3r::_3MF_Importer::_extract_model_from_archive(), Slic3r::_3MF_Importer::_extract_print_config_from_archive(), Slic3r::_3MF_Importer::_extract_sla_drain_holes_from_archive(), Slic3r::_3MF_Importer::_extract_sla_support_points_from_archive(), Slic3r::_3MF_Importer::_generate_volumes(), Slic3r::_3MF_Importer::_handle_end_model(), Slic3r::_3MF_Importer::_handle_end_object(), Slic3r::_3MF_Importer::_handle_start_component(), Slic3r::_3MF_Importer::_handle_start_config_metadata(), Slic3r::_3MF_Importer::_handle_start_config_object(), Slic3r::_3MF_Importer::_handle_start_config_volume(), Slic3r::_3MF_Importer::_handle_start_config_volume_mesh(), Slic3r::_3MF_Importer::_handle_start_object(), Slic3r::_3MF_Importer::_load_model_from_file(), and Slic3r::_3MF_Exporter::_save_model_to_file().
|
inlineprotectedinherited |
References m_errors.
Referenced by Slic3r::_3MF_Importer::load_model_from_file(), and Slic3r::_3MF_Exporter::save_model_to_file().
|
inlineinherited |
References m_errors.
Referenced by Slic3r::load_3mf(), and Slic3r::store_3mf().
| bool Slic3r::_3MF_Exporter::save_model_to_file | ( | const std::string & | filename, |
| Model & | model, | ||
| const DynamicPrintConfig * | config, | ||
| bool | fullpath_sources, | ||
| const ThumbnailData * | thumbnail_data, | ||
| bool | zip64 ) |
References _save_model_to_file(), Slic3r::_3MF_Base::clear_errors(), m_fullpath_sources, m_zip64, and save_model_to_file().
Referenced by save_model_to_file(), and Slic3r::store_3mf().
|
privateinherited |
Referenced by add_error(), clear_errors(), and log_errors().
|
private |
Referenced by _add_model_config_file_to_archive(), and save_model_to_file().
|
private |
Referenced by _add_model_file_to_archive(), and save_model_to_file().