Kostas Karmas
8c1cf89d45
Skip arranging objects that have no convex hull
...
CURA-7780
2020-10-16 11:31:00 +02:00
Kostas Karmas
a0e4e4325d
Add missing documentation
...
CURA-7440
2020-10-12 17:57:00 +02:00
Kostas Karmas
972e2f6716
Fix crash when arranging objects in one-at-a-time mode
...
Crashing was occuring because node.getPoints() can return None.
CURA-7440
2020-10-12 16:28:28 +02:00
Remco Burema
9f929298d7
Merge pull request #8510 from Ultimaker/CURA-7754_add_disallowed_areas
...
Mark disallowed areas as disallowed areas
2020-10-09 19:27:26 +02:00
Kostas Karmas
d47623d58a
Remove duplicate addition of items in the node_items list
...
CURA-7440
2020-10-09 17:19:53 +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
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
Ghostkeeper
6bfa24686f
Mark disallowed areas as disallowed areas
...
Also improve the filtering a bit so that it's no longer dependent on the order. Doesn't really matter in this case but it should be more robust.
Contributes to issue CURA-7754.
2020-10-08 11:10:24 +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
d801f9838a
Fix mypy issues
...
It doesn't seem to like blanket imports
CURA-7440
2020-10-05 14:52:50 +02:00
Jaime van Kessel
a14135be5e
Add some documentation to the arrange nest algorithm
...
CURA-7440
2020-10-05 14:24:34 +02:00
Jaime van Kessel
30966beed2
Let autoplacement also take the existing nodes into account
...
CURA-7440
2020-10-05 13:37:57 +02:00
Jaime van Kessel
274dc8d06c
Split up arrange
...
This splits up the finding of new positions with the actual move. This is needed
for when we want to place new nodes on model load.
CURA-7440
2020-10-02 11:21:57 +02:00
Jaime van Kessel
8c1985cdb3
Move nest2darrange to it's own function
...
This makes it a lot easier to re-use it
CURA-7440
2020-10-02 10:06:09 +02:00