Skip to content

Commit

Permalink
Merge branch 'CURA-12096_move_gradual_flow_plugin_back_into_the_engin…
Browse files Browse the repository at this point in the history
…e_core' into CURA-12081_scarf-seam
  • Loading branch information
wawanbreton committed Aug 19, 2024
2 parents 0954c37 + c495527 commit 3f6953c
Show file tree
Hide file tree
Showing 265 changed files with 1,082 additions and 1,529 deletions.
14 changes: 0 additions & 14 deletions conandata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ requirements:
- "curaengine/(latest)@ultimaker/testing"
- "cura_binary_data/(latest)@ultimaker/testing"
- "fdm_materials/(latest)@ultimaker/testing"
- "curaengine_plugin_gradual_flow/0.1.0-beta.4"
- "dulcificum/0.2.1"
- "pysavitar/5.3.0"
- "pynest2d/5.3.0"
Expand Down Expand Up @@ -34,14 +33,6 @@ pyinstaller:
package: "cura"
src: "plugins"
dst: "share/cura/plugins"
curaengine_gradual_flow_plugin:
package: "curaengine_plugin_gradual_flow"
src: "res/plugins/CuraEngineGradualFlow"
dst: "share/cura/plugins/CuraEngineGradualFlow"
curaengine_gradual_flow_plugin_bundled:
package: "curaengine_plugin_gradual_flow"
src: "res/bundled_packages"
dst: "share/cura/resources/bundled_packages"
native_cad_plugin:
package: "native_cad_plugin"
src: "res/plugins/NativeCADplugin"
Expand Down Expand Up @@ -105,11 +96,6 @@ pyinstaller:
src: "bin"
dst: "."
binary: "CuraEngine"
curaengine_gradual_flow_plugin_service:
package: "curaengine_plugin_gradual_flow"
src: "bin"
dst: "."
binary: "curaengine_plugin_gradual_flow"
hiddenimports:
- "pySavitar"
- "pyArcus"
Expand Down
16 changes: 3 additions & 13 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,17 +390,11 @@ def generate(self):
copy(self, "CuraEngine", curaengine.bindirs[0], self.source_folder, keep_path = False)

# Copy the external plugins that we want to bundle with Cura
rmdir(self,str(self.source_path.joinpath("plugins", "CuraEngineGradualFlow")))
curaengine_plugin_gradual_flow = self.dependencies["curaengine_plugin_gradual_flow"].cpp_info
copy(self, "*", curaengine_plugin_gradual_flow.resdirs[0], str(self.source_path.joinpath("plugins", "CuraEngineGradualFlow")), keep_path = True)
copy(self, "*", curaengine_plugin_gradual_flow.bindirs[0], self.source_folder, keep_path = False)
copy(self, "bundled_*.json", curaengine_plugin_gradual_flow.resdirs[1], str(self.source_path.joinpath("resources", "bundled_packages")), keep_path = False)

if self._enterprise:
rmdir(self, str(self.source_path.joinpath("plugins", "NativeCADplugin")))
curaengine_plugin_gradual_flow = self.dependencies["native_cad_plugin"].cpp_info
copy(self, "*", curaengine_plugin_gradual_flow.resdirs[0], str(self.source_path.joinpath("plugins", "NativeCADplugin")), keep_path = True)
copy(self, "bundled_*.json", curaengine_plugin_gradual_flow.resdirs[1], str(self.source_path.joinpath("resources", "bundled_packages")), keep_path = False)
native_cad_plugin = self.dependencies["native_cad_plugin"].cpp_info
copy(self, "*", native_cad_plugin.resdirs[0], str(self.source_path.joinpath("plugins", "NativeCADplugin")), keep_path = True)
copy(self, "bundled_*.json", native_cad_plugin.resdirs[1], str(self.source_path.joinpath("resources", "bundled_packages")), keep_path = False)

# Copy resources of cura_binary_data
cura_binary_data = self.dependencies["cura_binary_data"].cpp_info
Expand Down Expand Up @@ -517,10 +511,6 @@ def package(self):
copy(self, "requirement*.txt", src = self.source_folder, dst = os.path.join(self.package_folder, self.cpp.package.resdirs[-1]))
copy(self, "*", src = os.path.join(self.source_folder, "packaging"), dst = os.path.join(self.package_folder, self.cpp.package.resdirs[2]))

# Remove the CuraEngineGradualFlow plugin from the package
rmdir(self, os.path.join(self.package_folder, self.cpp.package.resdirs[1], "CuraEngineGradualFlow"))
rm(self, "bundled_*.json", os.path.join(self.package_folder, self.cpp.package.resdirs[0], "bundled_packages"), recursive = False)

# Remove the fdm_materials from the package
rmdir(self, os.path.join(self.package_folder, self.cpp.package.resdirs[0], "materials"))

Expand Down
63 changes: 63 additions & 0 deletions resources/definitions/fdmprinter.def.json
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,15 @@
"settable_per_mesh": false,
"settable_per_extruder": false,
"settable_per_meshgroup": false
},
"reset_flow_duration":
{
"enabled": "gradual_flow_enabled",
"value": 2.0,
"label": "Reset flow duration",
"description": "For any travel move longer than this value, the material flow is reset to the paths target flow",
"unit": "s",
"type": "float"
}
}
},
Expand Down Expand Up @@ -3155,6 +3164,60 @@
"enabled": false,
"settable_per_mesh": false,
"settable_per_extruder": true
},
"gradual_flow_enabled":
{
"label": "Gradual flow enabled",
"description": "Enable gradual flow changes. When enabled, the flow is gradually increased/decreased to the target flow. This is useful for printers with a bowden tube where the flow is not immediately changed when the extruder motor starts/stops.",
"type": "bool",
"default_value": false,
"settable_per_mesh": false,
"settable_per_extruder": true
},
"max_flow_acceleration":
{
"enabled": "gradual_flow_enabled",
"label": "Gradual flow max acceleration",
"description": "Maximum acceleration for gradual flow changes",
"type": "float",
"unit": "mm\u00b3/s\u00b2",
"default_value": 1,
"minimum_value_warning": 0.1,
"maximum_value_warning": 99999,
"minimum_value": 0.01,
"settable_per_mesh": false,
"settable_per_extruder": true,
"comments": "when enabled, each second the flow will at max be increased/decreased by this value"
},
"layer_0_max_flow_acceleration":
{
"enabled": "gradual_flow_enabled",
"value": "max_flow_acceleration",
"label": "Initial layer max flow acceleration",
"description": "Minimum speed for gradual flow changes for the first layer",
"type": "float",
"unit": "mm\u00b3/s\u00b2",
"default_value": 1,
"minimum_value_warning": 0.1,
"maximum_value_warning": 99999,
"minimum_value": 0.01,
"settable_per_mesh": false,
"settable_per_extruder": true
},
"gradual_flow_discretisation_step_size":
{
"enabled": "gradual_flow_enabled",
"label": "Gradual flow discretisation step size",
"description": "Duration of each step in the gradual flow change",
"type": "float",
"unit": "s",
"default_value": 0.2,
"maximum_value_warning": 1.0,
"maximum_value": 5.0,
"minimum_value_warning": 0.1,
"minimum_value": 0.01,
"settable_per_mesh": false,
"settable_per_extruder": true
}
}
},
Expand Down
60 changes: 30 additions & 30 deletions resources/i18n/cs_CZ/fdmprinter.def.json.po
Original file line number Diff line number Diff line change
Expand Up @@ -5893,53 +5893,53 @@ msgstr "cestování"
#~ msgid "Brim Only on Outside"
#~ msgstr "Límec pouze venku"

#~ msgctxt "gradual_flow_discretisation_step_size description"
#~ msgid "Duration of each step in the gradual flow change"
#~ msgstr "Doba trvání každého kroku v postupné změně průtoku"
msgctxt "gradual_flow_discretisation_step_size description"
msgid "Duration of each step in the gradual flow change"
msgstr "Doba trvání každého kroku v postupné změně průtoku"

#~ msgctxt "gradual_flow_enabled description"
#~ msgid "Enable gradual flow changes. When enabled, the flow is gradually increased/decreased to the target flow. This is useful for printers with a bowden tube where the flow is not immediately changed when the extruder motor starts/stops."
#~ msgstr "Povolit postupné změny průtoku. Když je povoleno, průtok se postupně zvyšuje / snižuje na cílový průtok. Toto je užitečné pro tiskárny s Bowdenovou trubicí, kde se průtok okamžitě nezmění, když se spustí / zastaví extrudér."
msgctxt "gradual_flow_enabled description"
msgid "Enable gradual flow changes. When enabled, the flow is gradually increased/decreased to the target flow. This is useful for printers with a bowden tube where the flow is not immediately changed when the extruder motor starts/stops."
msgstr "Povolit postupné změny průtoku. Když je povoleno, průtok se postupně zvyšuje / snižuje na cílový průtok. Toto je užitečné pro tiskárny s Bowdenovou trubicí, kde se průtok okamžitě nezmění, když se spustí / zastaví extrudér."

#~ msgctxt "reset_flow_duration description"
#~ msgid "For any travel move longer than this value, the material flow is reset to the paths target flow"
#~ msgstr "Pro jakýkoli pohyb delší než tato hodnota se materiálový průtok resetuje na cílový průtok dráhy"
msgctxt "reset_flow_duration description"
msgid "For any travel move longer than this value, the material flow is reset to the paths target flow"
msgstr "Pro jakýkoli pohyb delší než tato hodnota se materiálový průtok resetuje na cílový průtok dráhy"

#~ msgctxt "gradual_flow_discretisation_step_size label"
#~ msgid "Gradual flow discretisation step size"
#~ msgstr "Velikost kroku diskretizace postupné změny průtoku"
msgctxt "gradual_flow_discretisation_step_size label"
msgid "Gradual flow discretisation step size"
msgstr "Velikost kroku diskretizace postupné změny průtoku"

#~ msgctxt "gradual_flow_enabled label"
#~ msgid "Gradual flow enabled"
#~ msgstr "Postupné změny průtoku povoleny"
msgctxt "gradual_flow_enabled label"
msgid "Gradual flow enabled"
msgstr "Postupné změny průtoku povoleny"

#~ msgctxt "max_flow_acceleration label"
#~ msgid "Gradual flow max acceleration"
#~ msgstr "Maximální zrychlení postupných změn průtoku"
msgctxt "max_flow_acceleration label"
msgid "Gradual flow max acceleration"
msgstr "Maximální zrychlení postupných změn průtoku"

#~ msgctxt "layer_0_max_flow_acceleration label"
#~ msgid "Initial layer max flow acceleration"
#~ msgstr "Maximální zrychlení průtoku pro první vrstvu"
msgctxt "layer_0_max_flow_acceleration label"
msgid "Initial layer max flow acceleration"
msgstr "Maximální zrychlení průtoku pro první vrstvu"

#~ msgctxt "layer_0_z_overlap description"
#~ msgid "Make the first and second layer of the model overlap in the Z direction to compensate for the filament lost in the airgap. All models above the first model layer will be shifted down by this amount."
#~ msgstr "První a druhá vrstva modelu se překrývají ve směru Z, aby se kompenzovalo vlákno ztracené ve vzduchové mezeře. Všechny modely nad první vrstvou modelu budou o tuto částku posunuty dolů."

#~ msgctxt "max_flow_acceleration description"
#~ msgid "Maximum acceleration for gradual flow changes"
#~ msgstr "Maximální zrychlení pro postupné změny průtoku"
msgctxt "max_flow_acceleration description"
msgid "Maximum acceleration for gradual flow changes"
msgstr "Maximální zrychlení pro postupné změny průtoku"

#~ msgctxt "layer_0_max_flow_acceleration description"
#~ msgid "Minimum speed for gradual flow changes for the first layer"
#~ msgstr "Minimální rychlost pro postupné změny průtoku pro první vrstvu"
msgctxt "layer_0_max_flow_acceleration description"
msgid "Minimum speed for gradual flow changes for the first layer"
msgstr "Minimální rychlost pro postupné změny průtoku pro první vrstvu"

#~ msgctxt "brim_outside_only description"
#~ msgid "Only print the brim on the outside of the model. This reduces the amount of brim you need to remove afterwards, while it doesn't reduce the bed adhesion that much."
#~ msgstr "Límec tiskněte pouze na vnější stranu modelu. Tím se snižuje množství límce, který je třeba následně odstranit, zatímco to tolik nesnižuje přilnavost k podložce."

#~ msgctxt "reset_flow_duration label"
#~ msgid "Reset flow duration"
#~ msgstr "Doba trvání resetování průtoku"
msgctxt "reset_flow_duration label"
msgid "Reset flow duration"
msgstr "Doba trvání resetování průtoku"

#~ msgctxt "support_interface_skip_height label"
#~ msgid "Support Interface Resolution"
Expand Down
54 changes: 0 additions & 54 deletions resources/i18n/cs_CZ/gradual_flow_settings.def.json.po

This file was deleted.

40 changes: 40 additions & 0 deletions resources/i18n/de_DE/fdmprinter.def.json.po
Original file line number Diff line number Diff line change
Expand Up @@ -5860,3 +5860,43 @@ msgstr "Beim Drucken der ersten Schicht der Raft-Oberfläche verschieben Sie um
msgctxt "z_seam_on_vertex label"
msgid "Z Seam On Vertex"
msgstr "Z-Naht auf Scheitelpunkt"

msgctxt "gradual_flow_discretisation_step_size description"
msgid "Duration of each step in the gradual flow change"
msgstr "Dauer jedes Schritts bei der sukzessiven Durchflusssänderung"

msgctxt "gradual_flow_enabled description"
msgid "Enable gradual flow changes. When enabled, the flow is gradually increased/decreased to the target flow. This is useful for printers with a bowden tube where the flow is not immediately changed when the extruder motor starts/stops."
msgstr "Aktivieren Sie sukzessive Durchflussänderungen. Wenn diese Option aktiviert ist, wird der Durchfluss sukzessiv auf den angestrebten Durchfluss erhöht/verringert. Dies ist nützlich für Drucker mit einem Bowdenschlauch, bei denen der Durchfluss nicht sofort geändert wird, wenn der Extrudermotor startet/stoppt."

msgctxt "reset_flow_duration description"
msgid "For any travel move longer than this value, the material flow is reset to the paths target flow"
msgstr "Für jede Verfahrbewegung, die länger als dieser Wert ist, wird der Materialfluss auf den Sollwegfluss zurückgesetzt."

msgctxt "gradual_flow_discretisation_step_size label"
msgid "Gradual flow discretisation step size"
msgstr "Umfang des Diskretisierungsvorgangs bei sukzessivem Durchfluss"

msgctxt "gradual_flow_enabled label"
msgid "Gradual flow enabled"
msgstr "Sukzessiver Durchfluss aktiviert"

msgctxt "max_flow_acceleration label"
msgid "Gradual flow max acceleration"
msgstr "Maximale Beschleunigung bei sukzessivem Durchfluss"

msgctxt "layer_0_max_flow_acceleration label"
msgid "Initial layer max flow acceleration"
msgstr "Maximale Durchflussbeschleunigung bei der Anfangsschicht"

msgctxt "max_flow_acceleration description"
msgid "Maximum acceleration for gradual flow changes"
msgstr "Maximale Beschleunigung für sukzessive Durchflussänderungen"

msgctxt "layer_0_max_flow_acceleration description"
msgid "Minimum speed for gradual flow changes for the first layer"
msgstr "Mindestgeschwindigkeit für sukzessive Durchflussänderungen bei der Anfangsschicht"

msgctxt "reset_flow_duration label"
msgid "Reset flow duration"
msgstr "Durchflussdauer zurücksetzen"
53 changes: 0 additions & 53 deletions resources/i18n/de_DE/gradual_flow_settings.def.json.po

This file was deleted.

Loading

0 comments on commit 3f6953c

Please sign in to comment.