35 Commits

Author SHA1 Message Date
Jaime van Kessel
96444dbc09 Use correct keyboard enums 2022-03-31 13:54:24 +02:00
Remco Burema
895488a07b
Qt5->Qt6: Usee key-constants namespace.
part of CURA-8591
2021-12-29 09:10:19 +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
Jaime van Kessel
366ef4ca06 Fix undo and redo for support blocker
The translate wasn't done via an operation, so it wouldn't go back to the same
state after an undo / redo

Fixes #10648
2021-10-31 17:21:51 +01:00
Lipu Fei
27d6b9b53b Calculate bounding box for helper meshes 2019-05-24 10:49:35 +02:00
Diego Prado Gesto
429cbc11c6
Merge pull request #4210 from fieldOfView/fix_support_eraser_rendering
Fix rendering support eraser cubes
2018-08-10 16:52:39 +02:00
Ghostkeeper
e4bdd8096a
Remap shortcut
This is a bit more logical than 'G', I'd say. E is now available since other shortcuts were remapped as well.

Contributes to issue CURA-5634 and fixes #3969.
2018-08-10 11:22:42 +02:00
fieldOfView
d7e8cc9224 Fix rendering support eraser cubes
MeshBuilder.addCube creates cubes that don't have per-vertex normals. Geometry like that does not render properly in most shaders used in Cura. This becomes obvious when a user changes the "Mesh Type" using Per Model Settings.
2018-08-08 17:03:57 +02:00
Diego Prado Gesto
ff6bc9de4e Fix some more code-style 2018-07-03 13:09:05 +02:00
Ghostkeeper
cfd0bde6b1
Use CuraApplication instead of Application
Because UM.Application has no function getMultiBuildPlateModel.

Contributes to issue CURA-5330.
2018-06-15 15:32:44 +02:00
fieldOfView
d9034a6c85 Only respond to left mouse button 2018-04-15 12:08:49 +02:00
fieldOfView
3078ac2d2d Prevent scaling support eraser with scaled parent 2018-03-23 09:46:05 +01:00
fieldOfView
4fc3c00e1d Fix position of added anti support meshes in group 2018-03-19 15:46:43 +01:00
fieldOfView
ba67851105 Don't add a SettingOverrideDecorator twice
CuraSceneNodes get a SettingOverrideDecorator automatically when constructed
2018-03-19 12:08:18 +01:00
fieldOfView
4be947af55 Fix codestyle 2018-03-16 14:55:20 +01:00
fieldOfView
f05944bf29 Switch to translate tool when ctrl-clicking 2018-03-16 14:47:01 +01:00
fieldOfView
78a7299fc5 Maintain a selection when removing a mesh, so the tool stays active 2018-03-16 14:38:56 +01: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
fieldOfView
8e26d27e80 Fix crash when clicking a non-slicable node 2018-03-16 13:15:24 +01:00
fieldOfView
2a811c62d8 Ignore the first press after the selection has been cleared
if the selection is cleared with this tool active, there is no way to switch to another tool than to re-select an object (by clicking it) because the tool buttons in the toolbar will have been disabled. The mouse-event happens after the selection is changed, so we need to keep track of what the selection was previously by monitoring the selection state.
2018-03-15 23:58:22 +01:00
fieldOfView
b9bf78d36c Remove group when "parent" is the only node in the group 2018-03-15 15:05:56 +01:00
fieldOfView
c3c096aaa0 Select the picked node so the group does not get drawn 2018-03-15 14:57:11 +01:00
fieldOfView
a0c44192da Add support eraser meshes to group so it does not drop 2018-03-15 14:27:33 +01:00
fieldOfView
c25711797e Click support eraser mesh to remove it from the scene 2018-03-15 12:46:22 +01:00
fieldOfView
7e4cb1c36e Disable Support Eraser if anti_overhang_mesh is disabled 2018-03-14 10:08:00 +01:00
fieldOfView
a536da503b Rename DepthPass to PickingPass
The map created by the shader is not strictly a depth map; not only is the "depth" encoded in the rgb channels, but it is also a distance to the camera instead of a "scene depth".
2018-03-13 20:40:41 +01:00
fieldOfView
d88724aff5 Move ray picking to DepthPass 2018-03-13 20:05:49 +01:00
fieldOfView
73558c9e36 Fix rendering depth pass 2018-03-13 19:44:53 +01:00
fieldOfView
0caea24afc Add depth pass for picking a location 2018-03-13 12:14:05 +01:00
Jack Ha
22cf5abec2 Merge branch 'master' into refactoring_machine_manager 2018-02-27 10:24:56 +01:00
Diego Prado Gesto
3c6e94ea81 CURA-4968 Add the support eraser cube to the bottom of the buildplate
when the automatic drop models preference is OFF
2018-02-23 13:08:15 +01:00
Lipu Fei
495fc8bbd7 WIP: Refactor BuildPlateModel and split MultiBuildPlateModel 2018-02-17 22:24:05 +01:00
Ian Paschal
3a6905c0e6 Removed debug messages & unused code 2018-02-01 11:05:17 +01:00
Ian Paschal
f3372bce7c Added 2018 copyright and license information 2018-01-31 16:03:20 +01:00
Ian Paschal
e1da097970 Added Support Eraser Plugin
This is the first draft of the Support Eraser tool. The plugin creates a cube mesh which has the `anti_overhang_mesh` decorator causing it to block the creation of support material for overhangs within its volume. This distinction is necessary to avoid confusing this behavior from actually erasing a _portion_ of a support structure.

Some (non-necessary) improvements could be made such as:

- Better graphical style
- Discussion of whether the cube should be able to pass through the build plate or not
- Possible improvements to the tool's icon
- Placing the cube at a cursor click location
2018-01-31 12:55:41 +01:00