42 Commits

Author SHA1 Message Date
saumya.jain
b91ebcbb36 multiplying objects place them in a grid
Co-authored-by: Casper Lamboo <c.lamboo@ultimaker.com>

CURA-7951
2023-08-21 18:51:08 +02:00
saumya.jain
df69ccadb5 Revert "multiplying objects place them in a grid"
This reverts commit 209162fbce5dc0e5b2ff934900623691c46df233.
2023-08-21 18:45:40 +02:00
saumya.jain
209162fbce multiplying objects place them in a grid
CURA-7951
2023-08-21 17:31:29 +02:00
c.lamboo
4f9d041ae8 Add rotation lock in arrange and multiply objects
Add rotation lock in
- context menu item arrange and
- checkbox in multiply objects dialog

CURA-7951
2023-05-11 16:14:38 +02:00
Konstantinos Karmas
e793eac425 Push the grouped operation instead of redoing it
CURA-7851
2021-10-06 16:46:20 +02:00
Jaime van Kessel
4aae3d7e2e Move duplicated modifier meshes a bit after duplication
This makes sure that they are visible / selectable after multiplication

CURA-7851
2021-10-06 15:57:18 +02:00
Jaime van Kessel
4ce69a9eb5 Fix the message if not all duplicated objects could be placed
CURA-7851
2021-10-06 15:52:33 +02:00
Jaime van Kessel
fa4f567cb1 Simplify ifstatement for MultiplyObjects
CURA-7851
2021-10-06 15:50:12 +02:00
Jaime van Kessel
44eb3201a9 Fix duplicating / multiplicating support blockers
CURA-7851
2021-10-04 15:52:08 +02:00
jelle Spijker
b6665f1142
Applied review comments
Contributes to CURA-8418
2021-07-28 11:32:29 +02:00
Jelle Spijker
2263969d5f
Updated message with message types
Contributes to CURA-8418
2021-07-28 08:45:42 +02:00
Jaime van Kessel
900db57f0f
Update messages to use the message_types
CURA-8418
2021-07-27 11:54:43 +02:00
Kostas Karmas
f9bd5e3dcd Modify arrange() to optionally create AddSceneNodeOperations
Then the MultiplyObjectsJob can use the arrange function instead of duplicating the code

CURA-7440
2020-10-09 17:12:59 +02:00
Kostas Karmas
518003f027 Remove unused variables
CURA-7440
2020-10-09 16:03:31 +02:00
Kostas Karmas
eedbcb6a2d Fix z position of objects that end outside the buildplate
When multiplying objects or inserting objects in the scene that do not fit in the buildplate, those
objects would correctly end up outside the buildplate, but their Z position would be aligned at the
absolute Z=0 of the buildplate.

This commit fixes that by compensating in the z-axis, properly moving the object outside the
buildplate in the correct z-position so that it's bottom is aligned with the original object.

CURA-7440
2020-10-09 15:59:50 +02:00
Jaime van Kessel
a46bf8d6fa
Apply suggestions from code review
CURA-7440

Co-authored-by: Konstantinos Karmas <konskarm@gmail.com>
2020-10-08 09:43:22 +02:00
Jaime van Kessel
59b9639d87
Don't let arranger place all objects on the same spot if they don't fit
CURA-7440
2020-10-05 14:31:42 +02:00
Jaime van Kessel
9312dc5c07
Add deprecated tag to arranger
CURA-7440
2020-10-05 14:15:49 +02:00
Jaime van Kessel
a1f43e7bcf
Also use the new arranger when multiplying objects 2020-10-05 14:09:50 +02:00
Jaime van Kessel
5823140b21
Always add multiplied nodes to the root.
No idea why it was using the parent of the current node. It's
technically the same, but this is much more explicit

CURA-7440
2020-10-05 13:45:24 +02:00
Jaime van Kessel
85797c4cf5
Add processEvents calls to multiply job
Because we want them delicious updates

CURA-7106
2020-06-23 11:17:38 +02:00
Jaime van Kessel
e74f049142
Fix bunch of issues found by pylint 2020-01-10 16:37:46 +01:00
Jaime van Kessel
242c3a7470 Fix crash when arranging special meshtypes
CURA-6702
2019-08-12 14:29:15 +02:00
Jaime van Kessel
789eddbdee Add missing typing
CURA-6702
2019-08-12 14:23:53 +02:00
Jaime van Kessel
d4b47c75ab Fix typo in multiply message 2019-01-15 11:15:37 +01: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
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
ed0a0dd765 Fix multiply object in a rare case that an object is just too big 2018-05-30 10:58:19 +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
fieldOfView
78b49e8400 When multiplying a parented node, multiply the parent instead (like groups) 2018-03-23 16:35:36 +01:00
fieldOfView
e861a8a112 Add children to correct buildplate when multiplying 2018-03-19 12:32:52 +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
Jack Ha
41d5ec86a3 CURA-4525 updated scene node menu and added multi buildplate arrange 2017-11-08 14:07:40 +01:00
Mark
9a193ad5c5 Changing AGPLv3 to LGPLv3 2017-09-28 13:00:43 +02:00
alekseisasin
204019702d Added Title for messages
CURA-4203
2017-09-13 13:58:08 +02:00
Arjen Hiemstra
905e59354b Change MultiplyObjectsJob to work on a list of objects
This makes MultiplyObjectsJob able to handle a list of objects instead
of a single object ID.

Contributes to CURA-3609
2017-04-20 17:41:53 +02:00
Jack Ha
2879ec0e30 Permission for file. CURA-3676 2017-04-12 15:58:37 +02:00
Jack Ha
c7a6d42920 Fixed arranger multiplying too big objects and arrange All. CURA-3676 2017-04-12 15:58:09 +02:00
Jaime van Kessel
e26ade0e6f Multiplying now also gives a message if it could not find a suitable spot for some objects 2017-04-07 16:40:39 +02:00
Jaime van Kessel
f42efcb7e0 Removed count from findNodePlacement
CURA-3239
2017-04-07 16:16:38 +02:00
Jaime van Kessel
04eca9073a Moved multiply objects to job
CURA=3239
2017-04-07 16:11:23 +02:00