Commit Graph

40 Commits

Author SHA1 Message Date
8771ffd41a Fixed rendering of gizmo grabbers 2021-05-28 16:44:13 +02:00
c3d5866982 Fixed rendering of gizmos' grabbers 2021-05-28 16:44:13 +02:00
73fea9b460 Unified color definition 2021-05-28 16:44:13 +02:00
2721e502d0 Removed unneeded calls to GL_LIGHTING 2021-05-28 16:44:13 +02:00
4826422380 Removed static members from GLGizmoBase and GLGizmoBase::Grabber to fix OpenGL error when closing the application 2021-05-28 16:44:13 +02:00
246e5f845e Grabbers and support points appearence tweaking, some refactoring 2021-05-28 16:44:13 +02:00
afb0380285 Removed GLU calls from all the gizmos 2021-05-28 16:44:13 +02:00
937af2a2ce Include cleanup: Selection.hpp
It does not need 3DScene.hpp and Model.hpp
And it does not to be included by GLGizmoBase.hpp
2020-05-26 13:46:59 +02:00
17d79211b3 Generate gizmos' tooltip on demand 2020-03-16 16:37:22 +01:00
0eb46d09b9 Fixed gizmos' tooltips 2020-03-16 12:45:39 +01:00
0fa849b9b8 Shared data for SLA gizmos have been removed from GLGizmoBase
This commit introduces no functional changes, only code-shuffling
2020-02-27 15:18:15 +01:00
4fdf91f81d SLA gizmos can now be opened when any instance is selected
This was broken - only first instance worked
2020-02-27 15:18:15 +01:00
c0a16d5d5c SLA gizmo clipping plane resetting
Clipping plane direction is now initialized when the plane is first moved, not when the gizmo is opened. This is how previous versions worked.
This is a minimal-effort solution before the clipping plane is refactored properly.
2020-02-21 09:46:40 +01:00
01ba32595a AABB trees for SLA gizmos are not calculated when the object is selected, but only after one of the gizmos is opened 2020-02-21 09:46:40 +01:00
b3f8aed1d6 Hollowing: allow to place drain holes on the inner surface of a hollowed cavity
Drain holes are not allowed to be placed on its own inner surface. This was recently (0e3ebb3)
done by forcing invalidation of the slaposDrillHoles, which also invalidates and therefore
hides the drilled mesh. However, that also hides the hollowed mesh and it is not possible
to place holes inside the cavity.

This change does not dump the drilled mesh, but checks that no raycast hit ends up in a hole.
2020-02-06 17:58:26 +01:00
e5d5a67ff4 SlaSupports gizmo - show holes position even when user did not Preview the drilled mesh 2020-02-04 15:03:10 +01:00
61cc8765bf Fixed conflicts after merge
slaposHollowing was divided into slaposHollowing and slaposDrillHoles on master
This commit takes this into account on the code that was merged from lm_drilling_backend_rebased
2020-02-03 15:42:54 +01:00
9fdaf8b31a Clipping plane is now common for Hollowing and SLA supports gizmos 2020-02-03 15:17:18 +01:00
5ba0e67c35 Gizmo updates - forget everything about the loaded mesh when an object is deselected 2020-01-30 15:26:23 +01:00
021944dde7 SlaSupports gizmo - most of updating now assumes that common data struct is updated properly 2020-01-30 14:31:52 +01:00
80842be583 Hollowing gizmo - most of updating now assumes that common data struct is updated properly 2020-01-30 14:31:39 +01:00
370255ac6a Fixed transformation of the hollowed mesh to be used at frontend
Common gizmos data update is called from GLGizmoManager
2020-01-29 10:08:26 +01:00
3155e844bb SLA gizmos can now fetch hollowed and drilled mesh from the backend 2020-01-29 10:08:26 +01:00
013d150094 First steps on SLA and Hollowing gizmo data sharing 2019-12-17 15:57:24 +01:00
263a7faa45 Follow-up of 32dc4709a4 -> A more general fix 2019-08-26 09:06:21 +02:00
3e150f72bf Finished picking by color with a checksum in the alpha channel
to guard against unwanted alpha blending and / or multi sampling.
2019-08-07 14:15:38 +02:00
073fcc3ac9 Fixed a few warnings in headers (meaning they were reported once for each include)
Fixed an identification of CXX compiler in cmake so that 'AppleClang' is recognized
2019-07-23 14:02:20 +02:00
7088dfb1a0 Refactoring of GLGizmosXX classes to cleanup their interface 2019-07-17 12:06:23 +02:00
96681151a9 Framework to serialize gizmos into undo/redo stack
Serialization into undo/redo of Cut gizmo

Refactoring of GLGizmosManager
2019-07-17 08:38:48 +02:00
2f43e228f3 Tech ENABLE_SVG_ICONS set as default 2019-07-12 10:13:35 +02:00
e0023eb5c0 Constrained gizmo-scaling -> code cleanup and simplification 2019-05-10 13:07:59 +02:00
59b9f04120 1st installment of constrained gizmo-scaling 2019-05-10 11:13:55 +02:00
81386c1ae3 Follow-up of 1fbdf7bdaa -> Fixed grabbers size for move gizmo and grabbers dragging size 2019-04-15 15:05:26 +02:00
910605864a Added glsafe() around OpenGL calls where missing 2019-03-27 14:42:09 +01:00
0426ff1122 Merge branch 'master' of https://github.com/prusa3d/Slic3r into et_canvas_gui_refactoring 2019-03-27 08:33:48 +01:00
2f1a35b49e Gizmos' grabbers size made uniform as the mean value of the selection's bounding box sides 2019-03-26 14:53:32 +01:00
e9eb5b21ef GLCanvas3D::Gizmos as a standalone class (GLGizmosManager) 2019-03-20 13:51:25 +01:00
0bc6614cc6 GLCanvas3D::Selection as a standalone class 2019-03-19 13:30:21 +01:00
0f9dbebb33 Removed technology ENABLE_IMGUI 2019-03-18 11:45:15 +01:00
4c285950bc Separated gizmos into individual files 2019-03-18 11:45:15 +01:00