Diego Prado Gesto
412bcc9b90
Add the skeleton of the plugin
...
Contributes to CURA-5155.
2019-03-08 21:57:07 +01:00
Ghostkeeper
371585a0ba
Fix error if layer number ends up out of range
...
It normally doesn't go out of range, but some defensive coding just in case it does. And to fix a typing error of course.
2019-01-28 15:54:34 +01:00
Jaime van Kessel
3f7c922734
Add missing type for g-code reader
2018-12-17 17:37:12 +01:00
Lipu Fei
6992fd2991
Update plugin versions to match package versions
...
CURA-6019
2018-12-17 13:03:21 +01:00
Ghostkeeper
c235f339ae
Increment API version to 6
...
All plug-ins now have to re-check whether they are still compatible with the current version of Cura.
Contributes to issue CURA-6019.
2018-12-14 17:29:02 +01:00
Ghostkeeper
12eb43b8fd
Merge branch 'CURA-5769_gcode_retraction'
2018-10-24 16:14:05 +02:00
Ghostkeeper
9b74dfd5ec
Correct typo
...
intented -> intended
2018-10-24 15:54:45 +02:00
Aleksei S
22db3cb32b
Show retraction for G92 command
...
CURA-5769
2018-10-19 13:18:42 +02:00
alekseisasin
a7be605b9d
Typing error in CI CURA-5769
2018-10-17 09:50:22 +02:00
Aleksei S
20fa7f4dd8
Display retractions lines for the loaded Gcode files
...
CURA-5769
2018-10-16 16:47:05 +02:00
Ghostkeeper
0ce9bf61be
Move MIME type declarations into constructors of readers
...
So that if you disable the plug-in, the MIME type declaration is also not added.
Fixes #4151 .
2018-09-27 13:58:06 +02:00
Ghostkeeper
88ba2ac345
Define gcode.gz extension in GCodeGzReader
...
So if you were to disable the GCodeGzReader plug-in, you will now no longer see the extension in the files you can read.
Fixes #4151 .
2018-09-27 13:27:42 +02:00
Jaime van Kessel
5c6c299b27
Cleanup extruder manager
...
Few more unused functions removed & simplified.
It also fixes a few more typing issues that I encountered.
2018-09-07 17:06:18 +02:00
Aleksei S
fe9cada459
Increase plugin API version to 5
...
CURA-5627
2018-08-27 13:59:00 +02:00
Ian Paschal
75d5828f5f
Merge branch 'master' into fix_tests_cura_engine_backend
2018-07-06 09:48:07 +02:00
Ian Paschal
2f8debc985
Fixes for FlavorParser
2018-07-05 15:45:48 +02:00
Diego Prado Gesto
c738f306fb
Fix style in some components
2018-07-05 14:35:12 +02:00
Lipu Fei
dc8d9e0f96
Merge branch 'master' into mypy_fixes
2018-06-29 13:45:55 +02:00
Jaime van Kessel
b4f59a7822
Removed unneeded application reference in construction of meshreaders
2018-06-29 09:25:38 +02:00
Ghostkeeper
797d05947c
Fix type errors
...
Contributes to issue CURA-5330.
2018-06-15 15:20:41 +02:00
Ghostkeeper
9821793b46
Don't override boundingbox of SceneNode
...
Whatever was intended here, it didn't work. Because when a method is called it is called on the class of the object. Methods are not attributes of instances but attributes of the class. The attribute of the class was never changed, so this had no effect.
Contributes to issue CURA-5330.
2018-06-15 15:16:55 +02:00
Diego Prado Gesto
0a21ce44b0
CURA-5330 Fix code style and typing in GCodeReader plugin
2018-06-13 17:36:04 +02:00
Diego Prado Gesto
ddd7b056f3
CURA-5164 Make the mesh readers compliant with the new signature of the mesh reader. Also adapt the tests.
2018-05-23 17:17:41 +02:00
Diego Prado Gesto
8ad409ff55
Merge branch 'master' into WIP_improve_initialization
2018-05-14 15:15:02 +02:00
Diego Prado Gesto
43657010ba
CURA-5164 The Preferences is not a singleton class anymore since in some point
...
several instances need to be created.
- In the ThreeMFWorkspaceReader we need to create some temporal
instances of Preferences that makes it not singleton anymore.
- The current preferences are kept in the Application class and so all
the calls to the preferences are changed to get the preferences from
Application.
- The method getInstance in Preferences is kept as deprecated since some
external plugins.
2018-05-11 08:50:42 +02:00
Ruben D
6772dc9ea7
Show g-code in position it would print
...
Rather than trying to retrieve from the g-code what the position was that it was originally sliced. It was trying to find whether it was sliced for a printer with center_is_zero by seeing if there are any negative coordinates in the g-code, which was faulty. Now we don't even try to do that any more. We just find where the print would end up if it were printed with the currently selected printer.
Contributes to issue CURA-5068 and fixes #3634 .
2018-05-09 13:25:41 +02:00
Ruben D
fb2a8c8d57
Fix typing of paths
...
There is still something up with the E values. Most probably an actual bug. We'll investigate.
Contributes to issue CURA-5330.
2018-05-09 13:25:41 +02:00
Ruben D
af06096e08
Add typing
...
As per code style.
Contributes to issue CURA-5330.
2018-05-09 13:25:41 +02:00
Aleksei S
9779c41071
Use MimeTypeDatabase to find loaded file extension and set proper project name
...
CURA-5323
2018-05-08 10:47:59 +02:00
Diego Prado Gesto
f328926be3
CURA-5275 Add the end point of the previous path also when there is a
...
change in the tool.
2018-04-23 14:24:25 +02:00
Diego Prado Gesto
a3dc94aedd
Merge branch 'mb-fix-gcode-reader-start-position' of https://github.com/smartavionics/Cura into smartavionics-mb-fix-gcode-reader-start-position
2018-04-23 14:11:07 +02:00
Lipu Fei
4b27d036bc
Merge pull request #3659 from Ultimaker/fix_gcode_line_width
...
Adjust filament diameter to calculate line width in the gcode parser
2018-04-13 10:38:47 +02:00
Diego Prado Gesto
01c846dbd8
Merge pull request #3651 from smartavionics/mb-fix-gcode-reader-g90
...
No! G90 does not command absolute extrusion, M82 does that.
2018-04-12 13:40:32 +02:00
Diego Prado Gesto
03ec123c3c
Use the correct filament diameter to calculate line width in the gcode
...
parser.
2018-04-12 11:00:43 +02:00
Mark Burton
da1790fd37
Append a \n to each saved line of gcode otherwise the whole file ends up as one line!
2018-04-11 17:08:55 +01:00
Mark Burton
c4a9c38c33
No! G90 does not command absolute extrusion, M82 does that.
2018-04-11 09:12:22 +01:00
Mark Burton
f023f6ea13
Add comment.
2018-04-11 08:54:17 +01:00
Mark Burton
1ce5920d48
Fix holes in spiralized objects that can occur at start of layer.
...
The gcode reader assumed that each layer starts with a move to the initial position but
for spiralized code that isn't true because the previous layer always ends up in the right
location. So we now start each layer with a fake move to the end position of the previous layer.
This won't actually cause a real move to occur but it ensures that the first line segment
in the new layer has the correct initial point.
2018-04-11 08:28:13 +01:00
Diego Prado Gesto
6dc416e180
CURA-5128 Change method name to be more clear.
...
Remove a line introduced by mistake in previous commit.
2018-03-23 17:21:09 +01:00
Diego Prado Gesto
dd0d0d20e9
CURA-5128 Modify the GCode parser to use a stream instead of a file so
...
we can reuse methods for the GCodeGZReader.
2018-03-23 17:14:53 +01:00
Lipu Fei
495fc8bbd7
WIP: Refactor BuildPlateModel and split MultiBuildPlateModel
2018-02-17 22:24:05 +01:00
Lipu Fei
7dfc1a4aa7
Add encoding='utf-8' for text file reading
...
CURA-4875
When encoding is not provided, the behaviour is system dependent and it
can break on OS X.
2018-01-29 12:29:20 +01:00
Diego Prado Gesto
e3e6f301f9
CURA-4778 Add up to 8 different colors when loading a GCode, since we
...
support up to 8 extruders in CFP
2018-01-09 10:42:03 +01:00
Diego Prado Gesto
0722465fb9
Merge branch 'master' of https://github.com/Ultimaker/Cura
2018-01-09 09:17:51 +01:00
Diego Prado Gesto
4c8c4c78da
CURA-4772 Create a CuraSceneNode instead of a SceneNode when reading a
...
GCode. Avoid creating an empty CuraSceneNode if the node is already an
instance of it.
2018-01-09 09:16:21 +01:00
Lipu Fei
c8cef9583e
rename scene.gcode_list to gcode_dict
...
CURA-4741
With the multi build plate feature, scene.gcode_list is now a dict which
stores a list of gcode for a build plate, so it makes more sense to have
it renamed to "gcode_dict" because it's not a list.
2018-01-08 16:18:41 +01:00
ChrisTerBeke
08322d0a5e
Move all decorators in the scene subfolder
2018-01-03 15:09:19 +01:00
Diego Prado Gesto
8054bc3d7d
CURA-4552 Change names as indicated in the review and making Marlin the
...
default flavor. Also fix the case in which the read flavor was not in
the dict.
2017-11-28 11:47:34 +01:00
Diego Prado Gesto
cab2e14728
CURA-4552 Add flavors to GCodeReader. The preRead looks for the flavor
...
in the GCode and then the right flavor handler is responsible for
reading the code. At this moment just the Griffin and RepRap flavors are
taken into account.
2017-11-27 16:56:26 +01:00
Diego Prado Gesto
c8c2129b7e
CURA-4552 Minor changes
2017-11-24 10:51:34 +01:00