116 Commits

Author SHA1 Message Date
Saumya Jain
5865906057 function Name change
CURA-10542
2024-02-27 13:52:59 +01:00
Saumya Jain
1338a562ef added drop models to buildplate as a right click option
Also shortcut: ctrl+B

CURA-10542
2024-02-27 13:45:10 +01:00
Saumya Jain
fb233d8b16 preference setting of "drop+to_buildplate" preseve from previous versions
CURA-10542
2024-02-26 14:59:48 +01:00
Saumya Jain
55e5cd8982 adding dropto buildplate drop per model in 3mf
CURA-10542
2024-02-26 14:58:53 +01:00
saumya.jain
f54d6099cd removed the preference made it a member of class platformphysics
CURA-10542
2024-02-15 11:23:34 +01:00
saumya.jain
32d9e6b45c preference does not change after user changes drop to buildplate for a model
CURA-10542
2024-02-14 12:59:41 +01:00
saumya.jain
aa2abfbd2e removing id of checkbox
CURA-10542
2024-02-09 15:15:44 +01:00
saumya.jain
91a84674f0 Adding the preference drop to buildplate while opening Cura project
CURA-10542
2024-02-09 15:11:56 +01:00
saumya.jain
e8bdca3dd9 introducing drop to buildplate per model
CURA-10542
2024-02-09 10:32:39 +01:00
Erwan MATHIEU
9334447972 Do not compute a convex hull for layer data nodes
CURA-10004
2023-09-18 15:16:04 +02:00
Erwan MATHIEU
e4a6b8dd91 Revert "Remove convex hull computation when not required"
This reverts commit ab22611ecfb4f74146afc49f78ee1065373447c9.
2023-09-18 14:57:55 +02:00
Erwan MATHIEU
ab22611ecf Remove convex hull computation when not required
ConvexHullDecorator is setup at node creation, so I can't see a way that this part of code is called. Moreover, it would add a decorator for a layer plan node, which actually leads to a crash.

CURA-10004
2023-09-11 15:44:07 +02:00
Maël Kerbiriou
4b7f18c08c SceneNode settings use native python types 2022-09-06 18:06:31 +02:00
Maël Kerbiriou
111136cf49 use automatic drop down setting from SceneNodeSettings 2022-09-01 15:29:52 +02:00
Ghostkeeper
c7d7dd11d1
Merge branch 'master' into PyQt6_upgrade
Conflicts:
	cura/PlatformPhysics.py -> Removed shapely on master, while QTimer import got updated to Qt6.
	plugins/Toolbox -> Entire folder is deleted in master, but it was updated to Qt6 here. This can all be removed.
2022-02-21 11:52:28 +01:00
Ghostkeeper
9118f20193
Merge branch 'CURA-8592_python_3.10' of github.com:Ultimaker/Cura into CURA-8592_python_3.10 2022-01-03 16:37:07 +01:00
Ghostkeeper
770eb03d62
Remove references to Shapely
This has been replaced with PyClipper so we don't need to import Shapely any more. Clipper doesn't give any exceptions as far as I know.

Contributes to issue CURA-8592.
2022-01-03 16:34:40 +01:00
Ghostkeeper
05bbebf2f7
Remove traces of Shapely
It's been replaced by Pyclipper. We were only importing Shapely here, not actually using it.

Contributes to issue CURA-8592.
2021-12-31 14:06:31 +01:00
Remco Burema
abe7c1bf7f
Search/replace Qt5->Qt6.
part of upgrading Qt to v6.2: CURA-8591
2021-12-28 14:46:02 +01:00
Nino van Hooff
89f0970a88 Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
Ghostkeeper
ea31d9d41b
Don't crash on moving empty groups down to build plate
Empty groups don't have a bounding box. I don't know how an empty group could've gotten there but maybe there is something happening with a plug-in or something.

Fixes Sentry issue CURA-FM.
2020-04-07 13:16:48 +02:00
Ghostkeeper
ae9f2b4ba9
Catch TopologicalError when calculating convex hull intersection
Apparently this can happen. I don't know what shapes this happens with though. I'm guessing it's got something to do with degenerate shapes.

Fixes Sentry issue CURA-DZ.
2020-03-26 14:15:38 +01:00
Jaime van Kessel
b8f76d7bfb
Use QtApplication instead of Application
In live code it doesn't cause problems, but the static checker found it
2019-11-08 14:13:19 +01:00
Remco Burema
3b1674200d Drop down to buildplate after resize (fix).
CURA-6686
2019-08-06 17:07:22 +02:00
Jaime van Kessel
c35c8e0f50 Move comments to be above the right bit of code 2019-08-02 14:40:59 +02:00
Jaime van Kessel
8b73f7cef9 No longer create convex hulls for modifier meshes
CURA-6030
2019-05-17 09:47:47 +02:00
Lipu Fei
3c43864dac Revert "Fix crash when moving the support eraser"
This reverts commit 3a195e9678513c8b8b09f341da6746e746b8f9a3.

CURA-6480
2019-04-24 11:28:50 +02:00
Lipu Fei
3a195e9678 Fix crash when moving the support eraser
CURA-6480
2019-04-24 11:04:33 +02:00
Jaime van Kessel
3f18b0b974 Increase agressiveness of short circuit logic; Just check if the node is slicable
That should also filter out platform, buildVolume and convexHulLNodes
2019-02-19 18:00:20 +01:00
Lipu Fei
48bac1a0f7 Do not move locked nodes
CURA-5347
2018-06-11 14:45:46 +02:00
Diego Prado Gesto
b7fe43e68c Merge branch 'master' into WIP_improve_initialization 2018-05-23 11:36:12 +02:00
Jack Ha
7136b8649a CURA-5388 disable automatic_push_free / Ensure models are kept apart by default 2018-05-23 10:48:19 +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
fieldOfView
83168886d6 Parent added meshes to the parent node instead of creating a group
This requires a small change in PlatformPhysics, or otherwise the added mesh would still drop down.
2018-03-16 13:22:43 +01:00
Jaime van Kessel
00f5e6ff7c Only trigger platform physics update if the node has meshdata 2018-03-13 16:53:28 +01:00
Lipu Fei
710e3c1629 Revert "Simplify check for _outside_buildarea"
This reverts commit 5c8d46b5c2ff27ff32bfc8e27451d3f8764accf8.
2018-01-23 12:39:15 +01:00
Lipu Fei
d3e85e6370 Revert "Do boundary checks on nodes for which the boundary check is unknown"
This reverts commit 27e441ecd9642530b5b8f8fe949cff152d54dcba.
2018-01-23 12:38:59 +01:00
Ghostkeeper
27e441ecd9
Do boundary checks on nodes for which the boundary check is unknown
Just before deciding whether to drop down the node on the build plate.

Contributes to issue CURA-4797.
2018-01-23 11:22:24 +01:00
Ghostkeeper
5c8d46b5c2
Simplify check for _outside_buildarea
There is a getter function that has a default if the attribute doesn't exist.

Contributes to issue CURA-4797.
2018-01-23 11:22:24 +01:00
Lipu Fei
b54b075cc9 Use isinstance() instead or issubclass()
CURA-4525
2018-01-12 16:42:34 +01:00
Lipu Fei
7b8f951682 Simplify temp_scale_factor assignment
CURA-4672
2018-01-04 13:02:10 +01:00
Lipu Fei
3a4445b656 Fix code style
CURA-4672
2018-01-04 12:56:24 +01:00
Lipu Fei
9cb7050681 Remove unused code
CURA-4672
2018-01-04 12:56:23 +01:00
ChrisTerBeke
08322d0a5e Move all decorators in the scene subfolder 2018-01-03 15:09:19 +01:00
ChrisTerBeke
62b06b063b Also move other operations into operations subfolder 2018-01-03 15:06:20 +01:00
Jack Ha
bfa33c721c CURA-4525 solved merge conflicts 2018-01-03 13:52:55 +01:00
Ghostkeeper
a4d83331ad
Code style: Space around binary operator
Contributes to issue CURA-4672.
2017-12-28 14:30:47 +01:00
Ghostkeeper
4b9ddc186a
Code style: Space after binary operator
Contributes to issue CURA-4672.
2017-12-28 14:28:12 +01:00
Aleksei S
05acb2e00f Prvent integer infinitive value after arranging all models
CURA-4672
2017-12-22 13:04:25 +01:00
Aleksei S
f591822836 Set minimum distance between models
CURA-4672
2017-12-22 12:00:08 +01:00