Ghostkeeper
09ee9660ea
Don't crash if the build volume is smaller than one arrange cell
...
Fixes Sentry issue CURA-M6.
2020-04-23 14:42:36 +02:00
Jaime van Kessel
d0901c91f7
Update some documentation to the new style
2020-04-10 14:05:17 +02:00
Jaime van Kessel
2e9dca71ce
Remove a number of unused imports
2020-04-10 13:58:10 +02:00
Ghostkeeper
c7e6553dbf
Disallow printers larger than 2km
...
To do this, I'm giving more power to the NumericTextFieldWithUnit QML element, to allow an arbitrary minimum and maximum. Enforcing this minimum and maximum is fairly simple with a JavaScript hook. This hook is necessary because the DoubleValidator allows intermediary values which defeats the purpose, essentially allowing any number as long as it has the correct number of digits.
Printers larger than 2km would start to give overflow errors in its X and Y coordinates. Z is okay up to about 9 billion kilometres in theory, since we don't need to do any squaring math on those coordinates afaik. In practice I'm doing this because at very high values the Arranger also gives errors because Numpy can't handle those extremely big arrays (since the arranger creates a 2mm grid).
Fixes Sentry issue CURA-CB.
2020-03-20 11:16:16 +01:00
Jaime van Kessel
7c70ace8f0
Prevent crash when the start_idx could not be found
...
CURA-59
2020-02-28 17:06:57 +01:00
Jaime van Kessel
290761fccd
Fix arranger crash
2020-01-15 11:29:27 +01:00
Jaime van Kessel
e74f049142
Fix bunch of issues found by pylint
2020-01-10 16:37:46 +01:00
Jaime van Kessel
81b33b8649
Add some missing typing
2020-01-10 14:58:53 +01:00
Jaime van Kessel
5a714f3a24
Fix arranging of nested group nodes causing a crash
...
CURA-6688
2019-08-06 14:04:45 +02:00
Ghostkeeper
17e86a28b7
Guard against broken import
2019-07-01 10:58:08 +02:00
Ghostkeeper
f86cf06b88
Add typing
2019-07-01 10:57:08 +02:00
Ghostkeeper
2b8a2d0c20
Reduce print output during happy path of automated tests
...
It should really just not print anything except what pytest prints, so you can easily see what tests have failed and what have not.
2019-03-11 11:10:09 +01:00
Remco Burema
0e329946f8
Small refactor (init set plain instead of with empty list). [CURA-6120]
2019-02-14 11:05:13 +01:00
Remco Burema
a24dc00bc5
Arrange child-nodes (like blocker) with parents. [CURA-6120]
2019-02-12 18:08:17 +01:00
Aleksei S
5be8b2810d
Fix: if load a model and scale it up to 0.1mm and then load another model then Cura will crash. It happens because the model 1 does not
...
have any points for arranging it on the build plate
CURA-5867
2018-11-22 22:10:54 +01:00
Diego Prado Gesto
762a1b1bfd
Fix code-style
2018-07-03 12:06:06 +02:00
Diego Prado Gesto
554a3fd908
Merge branch 'master' into mypy_fixes
...
Conflicts:
cura/Backups/Backup.py
cura/Settings/ExtruderManager.py
cura/Settings/MachineManager.py
2018-06-13 11:53:02 +02:00
Diego Prado Gesto
981eed313c
FindNodePlacement should find a placement for the node, but not creating
...
a new node.
2018-06-13 11:28:20 +02:00
Diego Prado Gesto
3a8756efa5
CURA-5330 Fix typing in the Arranger
2018-06-13 08:53:01 +02:00
Lipu Fei
3bb65a2760
No need to deepcopy before auto-arrange
2018-06-12 16:32:47 +02:00
Jack Ha
79d6a9a614
CURA-5434 fixed arrange to all build plates by reversing hull_shape and offset_shape
2018-06-04 12:53:13 +02:00
Jack Ha
14294936c5
CURA-5434 reversed the role of offset_shape_arr and hull_shape_arr, to fix one-at-a-time arranging
2018-06-04 11:39:37 +02:00
Jack Ha
8a6996e920
If an object does not have a convex hull, it does not crash the ArrangeObjectsJob
2018-05-29 09:32:06 +02:00
Jack Ha
827cb33b6e
CURA-5370 Update copyright and comments
2018-05-23 16:04:18 +02:00
Jack Ha
f5bed242ed
CURA-5370 Small refactor for Arranger: make x and y consistent (numpy arrays start with y first in general), faster, cleanup, more unit tests, take actual build plate size in Arranger instances
2018-05-22 17:13:35 +02:00
ChrisTerBeke
02b681a8f2
Fixes for slicing
2018-01-16 15:10:16 +01:00
Jack Ha
5e26ecb458
CURA-4672 now unbreak arrange for large objects as well :-)
2018-01-04 14:59:40 +01:00
Jack Ha
abdc33a0b9
CURA-4672 fix auto arrange for small models, they are now rounded up to 1 pixel rasterized
2018-01-04 14:23:22 +01:00
Jack Ha
9e5f0e10b9
CURA-4525 add comment and type hint
2018-01-03 15:49:31 +01:00
ChrisTerBeke
08322d0a5e
Move all decorators in the scene subfolder
2018-01-03 15:09:19 +01:00
ChrisTerBeke
a5630e5c54
Move all arranging related code into a subfolder
2018-01-03 15:05:06 +01:00