Lukas Matena
598ec04639
Hopefully a fix for #3683 (encoding in hollowing gizmo)
2020-02-21 12:53:28 +01:00
Lukas Matena
003a54600d
Make sure that objects are correctly shown/hidden when switched
2020-02-21 09:46:40 +01:00
Lukas Matena
4c22023762
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
Lukas Matena
4df6a645f2
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
Lukas Matena
90a8076d25
SLA support gizmo correctly hides drain holes if they are clipped by clipping plane
2020-02-20 15:04:53 +01:00
Lukas Matena
f8c5855d55
Hollowing 'accuracy' and 'closing distance' are only shown in the hollowing gizmo when the respective mode is active
2020-02-13 15:55:36 +01:00
Lukas Matena
2f18101c77
Slightly changed hollowing gizmo title
...
'ing' forms were removed to match Cut gizmo
2020-02-13 14:22:16 +01:00
Enrico Turri
b0218daafe
ENABLE_MODIFIED_TOOLBAR_TEXTURES set as default
2020-02-13 09:50:06 +01:00
Lukas Matena
79ce691d58
Don't calculate the AABB tree in FDM mode
2020-02-08 17:17:51 +01:00
Lukas Matena
808e45f5b3
Force backend update when hollowing gizmo is closed
...
Otherwise, moving holes will not invalidate the drilled mesh
One cannot do it immediately though, because that would also hide the hollowed mesh
2020-02-07 14:17:14 +01:00
Lukas Matena
e66632a595
Hollowing parameters should be labeled the same in the gizmo and in presets
2020-02-07 14:03:55 +01:00
Lukas Matena
665bc9e960
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
Lukas Matena
3c23917e9e
SLA gizmos: make sure that the clipping plane is properly reset to zero when the shown meshes are exchanged
2020-02-06 14:46:02 +01:00
tamasmeszaros
b0588abdd2
Invalidate background process when HollowingGizmo modifies settings
...
Also, assertion fail in debug mode for m_selection
2020-02-05 14:21:06 +01:00
Lukas Matena
617912ecc1
Fixed a crash on deleting object with SLA gizmo active
...
Rephrased text informing about hidden objects in both SLA gizmos
2020-02-04 15:03:10 +01:00
Lukas Matena
0e3ebb3e07
Hollowing gizmo: Invalidate drilled mesh in case a hole is manipulated
...
This way the holes cannot be placed on its own walls
Downside is that AABB trees have to be recalculated
2020-02-04 15:03:10 +01:00
Lukas Matena
58b5e75a9c
SlaSupports gizmo - show holes position even when user did not Preview the drilled mesh
2020-02-04 15:03:10 +01:00
Enrico Turri
87daba9288
Movements and rotations by keyboard indipendent from gizmos:
...
Left arrow = Decrease X by 1mm
Right arrow = Increase X by 1mm
Up arrow = Decrease Y by 1mm
Down arrow = Increase Y by 1mm
PgUp = Rotate 45 degrees CCW
PgDown = Rotate 45 degrees CW
2020-02-04 11:42:58 +01:00
Enrico Turri
648060f4ec
Smoother movements/rotations when using arrow keys
2020-02-04 10:31:50 +01:00
Enrico Turri
3371fa42da
Follow-up of e042cab8fa
-> Avoid polluting undo/redo stack
2020-02-04 09:32:09 +01:00
Enrico Turri
e042cab8fa
Follow-up of 8453c88482
, c09091c407
and 9d55121695
-> Use key down event in place of key up event
2020-02-03 16:05:13 +01:00
Lukas Matena
227cc4dc33
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
Lukas Matena
a1d4dab999
Merge branch 'master' into lm_drilling_backend_rebased
2020-02-03 15:20:16 +01:00
Lukas Matena
d407fda433
Hollowing gizmo - controls layout improvements
2020-02-03 15:17:18 +01:00
Lukas Matena
79da3a95e1
Clipping plane is now common for Hollowing and SLA supports gizmos
2020-02-03 15:17:18 +01:00
Enrico Turri
8453c88482
Cut Gizmo -> added movements using arrow keys:
...
Up arrow = increase Z by 1mm
Down arrow = decrease Z by 1mm
2020-02-03 15:00:49 +01:00
Enrico Turri
c09091c407
Rotate Gizmo -> added rotations using arrow keys:
...
Left arrow = 90 degrees around Z axis CCW
Right arrow = 90 degrees around Z axis CW
Up arrow = 45 degrees around Z axis CCW
Down arrow = 45 degrees around Z axis CW
2020-02-03 14:51:25 +01:00
Enrico Turri
9d55121695
Move Gizmo -> added movements using arrow keys:
...
Left arrow = decrease X by 1mm
Right arrow = increase X by 1mm
Up arrow = increase Y by 1mm
Down arrow = decrease Y by 1mm
2020-02-03 14:39:16 +01:00
Lukas Matena
a6f7fc93f4
Gizmo updates - forget everything about the loaded mesh when an object is deselected
2020-01-30 15:26:23 +01:00
Lukas Matena
4f43c6d3f8
SlaSupports gizmo - most of updating now assumes that common data struct is updated properly
2020-01-30 14:31:52 +01:00
Lukas Matena
08dcbd0271
Hollowing gizmo - most of updating now assumes that common data struct is updated properly
2020-01-30 14:31:39 +01:00
Lukas Matena
b41c6d7d64
Refuse to drill a broken mesh
...
Hole parameters defaults and limits changed a bit
2020-01-29 14:07:12 +01:00
Lukas Matena
3f73261fdb
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
Lukas Matena
46fdce1169
SLA gizmos can now fetch hollowed and drilled mesh from the backend
2020-01-29 10:08:26 +01:00
Lukas Matena
1c0aedbbe5
Hollowing gizmo can now trigger the backend calculation
2020-01-24 10:53:40 +01:00
Lukas Matena
63b0eec5a9
Merge branch 'master' into lm_tm_hollowing
2020-01-21 13:00:07 +01:00
foxox
07d6fd8f7e
Platter->Plater
2020-01-20 11:16:49 -05:00
Enrico Turri
b368f8ff24
Fixed conflicts after merge with master
2020-01-17 14:58:19 +01:00
Enrico Turri
dad09c737c
ENABLE_GIZMO_ICONS_NON_ACTIVABLE_STATE set as default
2020-01-17 10:34:32 +01:00
Lukas Matena
d9786f2bcd
Fixed SLA gizmos picking problem - hollowed mesh was not rendered for picking
2020-01-16 13:18:43 +01:00
Lukas Matena
822f9ff4a6
Fixed issues in SLA gizmos related to showing/hiding of the model/support structures
2020-01-16 13:18:43 +01:00
Lukas Matena
902d3bb904
Fixed loading of hole_height when a hole is selected (hollowing gizmo)
2020-01-16 13:18:43 +01:00
Lukas Matena
6e8bdb2c86
Fixed update of clipping plane when a gizmo was turned off
2020-01-16 13:18:43 +01:00
Lukas Matena
8c8256c6a2
Fixed diameter/radius mismatch in gizmo UI
2020-01-16 13:18:43 +01:00
Lukas Matena
a3f3c868eb
Removed needless calls to instance_bounding_box
2020-01-16 13:18:43 +01:00
Enrico Turri
3f2ccf08d2
3Dconnexion devices translation linearly dependent on zoom
2020-01-16 10:17:07 +01:00
Lukas Matena
d0d73e6109
Hollowing config values contain min/max values, these are respected when setting through the gizmo
...
Rendering and hole transformation fixes (still WIP, though)
2020-01-14 10:33:10 +01:00
Lukas Matena
e9d340c87f
Fixed transformations of the hollowed GLVolume
2020-01-09 14:09:26 +01:00
Lukas Matena
ff065aa9ba
Switched order of hollowing and support points gizmos
2020-01-09 10:01:21 +01:00
Enrico Turri
5a63b9a6a0
Follow-up of 5b2e2fe7b3
-> Fixed uv mapping on gizmobar
2020-01-08 10:04:39 +01:00