mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Merge pull request #1000 from thopiekar/master-CURA-1852
[CURA-1852] Sending material volumina per extruder
This commit is contained in:
commit
9fb4fc3e65
1 changed files with 4 additions and 3 deletions
|
@ -101,8 +101,9 @@ class SliceInfo(Extension):
|
||||||
print_information = Application.getInstance().getPrintInformation()
|
print_information = Application.getInstance().getPrintInformation()
|
||||||
material_radius = 0.5 * global_container_stack.getProperty("material_diameter", "value")
|
material_radius = 0.5 * global_container_stack.getProperty("material_diameter", "value")
|
||||||
|
|
||||||
# TODO: Send material per extruder instead of mashing it on a pile
|
# Send material per extruder
|
||||||
material_used = math.pi * material_radius * material_radius * sum(print_information.materialLengths) #Volume of all materials used
|
material_used = [str(math.pi * material_radius * material_radius * material_length) for material_length in print_information.materialLengths]
|
||||||
|
material_used = ",".join(material_used)
|
||||||
|
|
||||||
# Bundle the collected data
|
# Bundle the collected data
|
||||||
submitted_data = {
|
submitted_data = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue