Commit Graph
100 Commits
Author SHA1 Message Date
Lukas Matena 2269e1b183 Deliberately setting the SLA dialog a bit too large
It is not possible to precisely calculate actual window size before the rendering, so I added a safety margin.
It would be nicer to let the window autoscale and only use the inflated dimension for possible moving the window upward to prevent collision with the bottom panel, but...
ImGui autoscaling does not work properly for some reason (the window size autoscales only after a mouse move), so this is a workaround.
2019-04-03 10:41:45 +02:00
Lukas Matena e20ffbfd85 SLA gizmo uses CallAfter to trigger SLA supports calculation to prevent recursive rendering calls 2019-04-02 09:36:16 +02:00
Lukas Matena 5f66a2d181 SLA gizmo dialog now respects system font settings 2019-04-01 14:51:18 +02:00
Lukas Matena 32ed064797 SLA gizmo fix: occasional crashes after deleting objects 2019-03-29 13:38:33 +01:00
Lukas Matena 490074a2dd SLA gizmo now turns off in case someone adds an object/instance (to prevent rendering points in thin air, etc.)
Also, a bug appering when adding an object larger than the bed and scaling it down was fixed (sla gizmo did not work correctly in that case)
2019-03-27 14:19:12 +01:00
Lukas Matena 3f7f8f978e Fix of sla gizmo (it sometimes showed supports for hidden objects) 2019-03-24 13:35:09 +01:00
Lukas Matena 0848617fd3 SLA gizmo fix: adding points to selection by Shift+click should now work again (was broken by 8466c55) 2019-03-22 10:56:51 +01:00
Lukas Matena 8b73608e9f SLA gizmo can be activated if the supports are outside the bed
Otherwise there is a possibility that the object gets out of bed when the gizmo is active (supports are generated with object close to the edge), which the gizmo does not expect
2019-03-20 15:37:13 +01:00
Lukas Matena 9f06dbd615 Added a mention of ASAN in the wiki 2019-03-20 15:19:27 +01:00
Lukas Matena 8466c55b78 SLA gizmo - points are added on leftdown event, not leftup as before 2019-03-20 14:04:59 +01:00
Lukas Matena df01af975a SLA gizmo now forces objects to use their normal color (not SELECTED_COLOR) 2019-03-20 14:04:20 +01:00
Lukas Matena 2728e45646 Renamed function mouse_event to gizmo_event 2019-03-20 13:44:34 +01:00
Lukas Matena 4ceba39d99 Decreased number of polygons on the SLA support point marks for faster rendering 2019-03-20 10:13:16 +01:00
Lukas Matena e813a562a1 Removed technology ENABLE_IMGUI 2019-03-18 11:45:15 +01:00
Lukas Matena d3c8e3166e Separated gizmos into individual files 2019-03-18 11:45:15 +01:00
Lukas Matena 5f81328aa4 Fixed a case when the SLA gizmo did not calculate igl mesh and aabb tree even though it should 2019-03-15 18:40:49 +01:00
Lukas Matena ef939905b1 Another fix of the gizmo grabber color picking 2019-03-15 11:04:08 +01:00
Lukas Matena 32c9e8b168 A small fix of the gizmo grabbers picking 2019-03-15 10:15:23 +01:00
Lukas Matena 2750a8113d SLA gizmo now shows arrows pointing at the points so they are easy to see 2019-03-13 15:38:27 +01:00
Lukas Matena 03beb1870b SLA gizmo - combo replaced by slider, autogeneration uses config value for head_diameter 2019-03-13 12:02:33 +01:00
Lukas Matena 63b65bb3c8 Wipe tower brim lines are now printed with overlaps as they should be 2019-03-13 10:46:50 +01:00
Lukas Matena cbe96906eb SLA support points are correctly appointed as user-modified
SLA gizmo point cache is reloaded when appropriate
2019-03-11 15:05:36 +01:00
Lukas Matena e4dca04a4b Added wxBusyCursor on AABB tree calculation for SLA gizmo 2019-03-08 20:34:22 +01:00
Lukas Matena 8b74cc48eb Prevented instance move event when SLA gizmo is active so right panel is not needlessly updated 2019-03-08 09:26:42 +01:00
Lukas Matena 79fbf08409 An attempt to fix sla gizmo imgui dialog scaling on osx and hidpi screens 2019-03-06 10:11:02 +01:00
Lukas Matena f147f192b4 Disabled object context menu when the SLA gizmo is active 2019-03-06 10:10:10 +01:00
Lukas Matena 2fe542e0fc Merge branch 'lm_sla_gizmo_render' 2019-03-04 14:52:21 +01:00
Lukas Matena 02c68ed895 Prevented the sla gizmo dialog to overlap the bottom toolbar 2019-03-04 14:52:08 +01:00
Lukas Matena 9c5194c89b An attempt to fix an OSX crash when manipulating the ImGui sliders 2019-03-04 12:47:02 +01:00
Lukas Matena ee4496f59f An attempt to fix an unwanted cancellation caused by improper frontend-backend data synchronization (SLA support points) 2019-03-01 16:17:23 +01:00
Lukas Matena b45c80b8db Fixed the 'remove all points' button in sla gizmo (was only working in editing mode) 2019-03-01 15:03:58 +01:00
Lukas Matena 5846af256a SLA supports gizmo can change object config options 2019-03-01 13:24:24 +01:00
Lukas Matena 4eb4e40746 SLA gizmo keeps track of current status of the points, enables the user to erase all points 2019-02-27 16:23:10 +01:00
Lukas Matena bb533e386a Fixed shortcut for [M]ove gizmo (accidentally overridden by a shortcut for [M]anual changes of SLA support points) 2019-02-27 10:12:54 +01:00
Lukas Matena bb3819fd18 SLA support gizmo hotkeys added (A,M,Esc,Enter) 2019-02-25 13:04:05 +01:00
Lukas Matena 5292f16f32 SLA gizmo - clicking on object does not add new points if any point is selected
Remove selected points button is greyed out unless something is selected
2019-02-20 15:42:03 +01:00
Lukas Matena b0d78c3fb2 Place on bed fix (incorrect usage of sla z-shift) 2019-02-20 15:15:00 +01:00
Lukas Matena 3aa97a6f3f Merge branch 'lm_sla_supports_auto2' 2019-02-20 13:17:29 +01:00
Lukas Matena 574cb53bff Revert "Fixed a missing include problem in SLASupportAuto.hpp"
This is already solved in master branch by including the header

This reverts commit b7465e935e.
2019-02-20 13:16:09 +01:00
Lukas Matena b7465e935e Fixed a missing include problem in SLASupportAuto.hpp 2019-02-20 12:28:57 +01:00
Lukas Matena 2759c87e5b WarningTexture class in GLCanvas3D modified so it can be used more universally
Added a warning to notify that some objects are not rendered with SLA gizmo active
2019-02-20 12:09:45 +01:00
Lukas Matena 4558910a84 SLA gizmo can be deselected by clicking in canvas area (unless in editing mode) 2019-02-20 09:59:59 +01:00
Lukas Matena eb0fd03861 SLA supports - added parameters for the automatic generation (relative density measure and minimal distance of the points) 2019-02-19 16:34:52 +01:00
Lukas Matena d7e14d0792 Ensuring that GLCanvas gets focus when it should (Linux only fix) 2019-02-19 15:54:43 +01:00
Lukas Matena 1bb0af1588 SLA gizmo asks about saving changes, right button click removes points 2019-02-19 13:47:28 +01:00
Lukas Matena 3c7912186e SLA gizmo cannot be activated for objects outside the bed 2019-02-19 10:47:15 +01:00
Lukas Matena 023b788777 Merge branch 'master' into lm_sla_supports_auto2 2019-02-19 10:15:16 +01:00
Lukas Matena cb4763bb32 SLA gizmo - combobox items are now rendered immediately on mouse click, not after next mouse move 2019-02-18 14:56:19 +01:00
Lukas Matena c63bdccb4b SLA gizmo selection rectangle now checks for obscured points 2019-02-18 14:07:45 +01:00
Lukas Matena dbfcb8b76e Small formal fixes on the new 3d grid algorithm 2019-02-18 12:47:15 +01:00
Lukas Matena 5966dcb78e SLA gizmo - fixed support points rendering (depth is now correctly accounted for) 2019-02-18 11:59:47 +01:00
Lukas Matena d1529296c6 Added a wxMessageDialog as an alternative to the ImGui modal, in case it turns out not good enough 2019-02-11 17:09:15 +01:00
Lukas Matena ac8f9ab3dc SLA gizmo improvements
- point can be selected
- selection can be deleted, head diameter changed
- dragging of objects is not allowed with the gizmo being on
- added a modal dialog when automatic support generator is triggered
2019-02-11 16:29:03 +01:00
Lukas Matena 0453caf266 SLA gizmo - shift-up and ctrl+a event passing 2019-02-11 08:21:37 +01:00
Lukas Matena fd4054be7e First steps on the rectangular selection for the SLA gizmo 2019-02-09 07:19:01 +01:00
Lukas Matena 4357c80793 SLA gizmo - fixed hiding of objects and instances 2019-02-06 17:27:02 +01:00
Lukas Matena 9fc75d7b34 SLA support points (better backend->frontend synchronization and more)
- backend to frontend data synchronization to inform the gizmo that new points have been generated
- fixed the inadvertent cancellation of background processing caused by the SLA gizmo touching frontend data during the process
- inactive instances of the object are hidden when the SLA gizmo is active
- fix of imgui combobox rendering
2019-02-06 15:16:25 +01:00
Lukas Matena 906e66ea80 Tiny fix of previous commit 2019-02-06 11:09:00 +01:00
Lukas Matena 9dff44a8ad SLA support gizmo does not use Grabber class anymore 2019-02-04 12:33:59 +01:00
Lukas Matena fab3025107 SLA support points - minor adjustments 2019-02-04 10:56:49 +01:00
Lukas Matena 24a0fdb844 SLA support points generator now uses precalculated aabb tree 2019-02-04 09:50:25 +01:00
Lukas Matena d32d0a7636 Merge branch 'master' into lm_sla_supports_auto2 2019-02-04 08:41:00 +01:00
Lukas Matena d154e75ad7 Merge branch 'master' into lm_sla_supports_auto2 2019-02-04 08:40:20 +01:00
Lukas Matena f568f93f08 More SLA support points improvements
- unselected objects are hidden when SLA gizmo is active
- support volumes are hidden when editing mode is active
- 3mf support points format versioning
2019-02-01 23:09:02 +01:00
Lukas Matena 21026ec9a8 SLA support points improvements
- semi-intelligent algorithm to place support points
- enhanced ImGui dialog with editing/non-editing mode
- support points can have different head diameter (only implemented in GUI so far)
- autogenerated points supporting emerging islands are annotated and the info is kept
2019-02-01 07:13:08 +01:00
Lukas Matena ddcb2b1c23 Fixed a crash caused by double-free on application close event (Linux) 2019-01-28 12:12:26 +01:00
Lukas Matena 7c3319ede2 Place on bed optimization 2019-01-23 14:27:11 +01:00
Lukas Matena 78a9e6036a Fix of previous commit 2019-01-23 09:42:04 +01:00
Lukas Matena bf0232308b Place on face - fix of updating on selection change 2019-01-23 09:29:50 +01:00
Lukas Matena 1685a30ee0 Added static asserts on classes initialized by memset to make sure it is possible to do 2019-01-21 15:03:20 +01:00
Lukas Matena ed1aad9de4 PURGING FINISHED gcode comment only emitted on layers where some purging was happening 2019-01-21 14:05:28 +01:00
Lukas Matena 528546b6c8 Place on bed should now correctly process instance mirror and respect transformations on subvolumes 2019-01-21 12:53:57 +01:00
Lukas Matena 7b449a5361 Place on bed - increased tolerance for neighbouring triangles normals differences 2019-01-16 14:39:25 +01:00
Lukas Matena 2b39babf5f Place on bed area limit decreased 2019-01-07 12:05:20 +01:00
Lukas Matena bdf4d5f41f Fixed a crash when deleting several instances of one object 2019-01-05 08:34:05 +01:00
Lukas Matena 60926e7be3 Place to bed now rotates all instances the same way, regardless of which one was selected 2019-01-05 08:34:05 +01:00
Lukas Matena 7ef10e9663 Fix of place to bed function
This reverts commit 86e9cb604a
and also contains a fix.
2019-01-05 08:34:05 +01:00
Lukas Matena 86e9cb604a Revert "Place on bed improvements"
Some problem with disappearing planes, not worthy for a patch-release

This reverts commit f7726b99a7.
2019-01-04 16:18:25 +01:00
Lukas Matena f7726b99a7 Place on bed improvements
- works with large meshes
- area discrimination takes into account scaling of the object
- planes are recalculated when some volume's type is changed (e.g. from a part to modifier mesh)
2019-01-04 15:38:50 +01:00
Lukas Matena 9bd5728508 AboutDialog crash fix 2018-12-25 00:35:34 +01:00
Lukas Matena f288af0b5e Fixed an out-of-bound situation in SLA support generator 2018-12-21 13:55:14 +01:00
Lukas Matena 20a4593ee1 Flatten gizmo now respects sla_shift_z 2018-12-21 13:19:17 +01:00
Lukas Matena f3cb54d91f An attempt to fix aa OSX compilation issue 2018-12-21 12:57:26 +01:00
Lukas Matena 7617b10d6e SLA autosupports including islands 2018-12-21 12:35:20 +01:00
Lukas Matena 2ba28325f0 Merge branch 'master' into lm_sla_supports_auto 2018-12-21 12:34:24 +01:00
Lukas Matena 9571e7c209 Merge branch 'master' into lm_sla_supports_auto 2018-12-20 22:35:47 +01:00
Lukas Matena 75063410ad Merge branch 'master' into lm_sla_supports_auto 2018-12-19 15:31:21 +01:00
Lukas Matena 75ef3431b3 Merge branch 'master' into lm_sla_supports_auto 2018-12-19 12:25:58 +01:00
Lukas Matena 27ad859d4d SLA supports - first attempt at supporting islands 2018-12-14 16:15:59 +01:00
Lukas Matena 6cc8ae3729 Merge branch 'master' into lm_sla_supports_auto 2018-12-14 10:56:07 +01:00
Lukas Matena 054c1ca3ae Merge branch 'master' into lm_sla_supports_auto 2018-12-14 09:19:18 +01:00
Lukas Matena 779b6c5e0b Merge branch 'master' into lm_sla_supports_auto 2018-12-10 09:50:23 +01:00
Lukas Matena 4c3b177888 Merge branch 'master' into lm_sla_supports_auto 2018-12-07 18:37:35 +01:00
Lukas Matena 8a9a2ac964 Merge branch 'master' into lm_sla_supports_auto 2018-12-07 18:37:15 +01:00
Lukas Matena 705ad7fb69 First version of SLA support points generation 2018-12-07 14:21:33 +01:00
Lukas Matena 0afe2aec1e First version of SLA support points generation 2018-12-07 14:11:21 +01:00
Lukas Matena 69a7991c59 Fix of issue #1368 2018-11-28 12:30:48 +01:00
Lukas Matena ebac4c7eb8 Place on bed gizmo disabled for individual object parts 2018-11-28 12:08:25 +01:00
Lukas Matena 5813ec08c9 Place on bed planes recalculation after individual volumes are manipulated 2018-11-28 11:37:41 +01:00
Lukas Matena 21a1106776 SLA support points are rendered with regard to sla_shift_z 2018-11-26 16:32:42 +01:00