Documentation
¶
Overview ¶
Package printer defines target printer profiles: everything the converter needs to retarget a project (model id, filament slot count, baseline slicer settings, filament profile names).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Profile ¶
type Profile struct {
Name string `json:"name"`
DisplayName string `json:"display_name"`
// ModelID is written as printer_model_id in Metadata/slice_info.config.
ModelID string `json:"printer_model_id"`
FilamentSlots int `json:"filament_slots"`
// FilamentProfiles maps a material type (e.g. "PLA") to the slicer's
// filament_settings_id.
FilamentProfiles map[string]string `json:"filament_profiles"`
DefaultFilamentProfile string `json:"default_filament_profile"`
// ProjectSettings is a full Metadata/project_settings.config as saved
// by the target printer's slicer.
ProjectSettings map[string]any `json:"project_settings"`
}
func (*Profile) FilamentProfile ¶
func (*Profile) MaterialTypes ¶
Click to show internal directories.
Click to hide internal directories.