Lukas Matena
a95509ce36
Changed internal coordinates of drain holes
...
Drain holes reference position was saved slightly above the mesh to avoid problem when the hole is placed on flat or nearly flat surface
The depth of the hole was internally bigger than what the user has set to compensato for it
However, this leads to problem with scaling and makes reprojection of the holes on the mesh complicated
This commit changes the reference point to the point on the mesh and the extra elevation is handled when rendering and drilling the hole.
The change is reflected in 3MF drain holes versioning so that old 3MFs are loaded correctly.
Reprojection on the mesh after reload from disk/fix through netfabb has been enabled.
2020-08-24 08:11:12 +02:00
YuSanka
19c4f32604
Preset and PresetBundle are moved to the _libslic3r_ folder
2020-06-16 17:03:06 +02:00
Lukas Matena
2cc1dffc82
Fix of several issues related to gizmos updating and undo/redo
...
Common gizmos data cannot be used in on_set_state method
Also prevented calling render on empty GLVertexArrays
2020-06-03 15:33:39 +02:00
Lukas Matena
48c186331a
Includes cleanup:
...
GUI_App.hpp (should not include) MainFrame.hpp
MainFrame.hpp Plater.hpp
ModelArrange.hpp Model.hpp
Slicing.hpp PrintConfig.hpp
FillBase.hpp PrintConfig.hpp
GUI_App.hpp PrintConfig.hpp
OptionsGroup.hpp GUI_App.hpp
2020-05-27 14:01:47 +02:00
Lukas Matena
ac8491b599
SLA supports gizmo bugfix: show supports when not in editing mode
...
The bug was introduced after 2.2.0 release
2020-05-21 10:25:31 +02:00
Lukas Matena
0c84a0b696
Fixed SLA supports gizmo undo/redo stack
...
broken by 4f43c6d even before 2.2.0 release
2020-05-05 11:17:32 +02:00
Lukas Matena
1d65ce760b
Removed obsolete code
...
Got rid of dummy header GLGizmos.hpp
2020-04-07 16:47:39 +02:00
Lukas Matena
535a27de65
Fixed crash related to ClippingPlane and incorrect handling of sla z shift in hollowing gizmo
2020-04-07 16:47:39 +02:00
Lukas Matena
c704849a7a
SLA supports gizmo is now enabled and uses the new infrastructure
2020-04-07 16:47:39 +02:00
enricoturri1966
f12b39be25
Fixed conflicts after merge with master
2020-03-25 14:41:47 +01:00
Lukas Matena
6918f11100
Removed SLA unused code
...
Mostly the dead-ends that were tried when hollowing was being implemented
2020-03-03 15:53:26 +01:00
Lukas Matena
50ebdf5293
Include cleanup in Plater, GLCanvas3D and GLGizmosManager
2020-03-03 15:53:26 +01:00
Enrico Turri
2f8970de86
Fixed conflicts after merge with master
2020-03-02 11:35:03 +01:00
Enrico Turri
0b629eb905
GLCanvas3DManager moved from being a static member of _3DScene to be a normal member of GUI_App
2020-03-02 10:58:46 +01:00
Lukas Matena
03f17a13e7
Bugfix: SLA pad and supports were sometimes shown on instances that should have been hidden
...
The showing/hiding block cannot depend on whether the mesh was recently updated.
It would then not hide the supports and pad, which are calculated later than the hollowed mesh.
2020-02-27 17:58:27 +01:00
Lukas Matena
5a2da9597b
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
Lukas Matena
b2b2574244
Fixed a crash when deleting an object after switching from SLA to FDM
2020-02-27 15:18:15 +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
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
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
58b5e75a9c
SlaSupports gizmo - show holes position even when user did not Preview the drilled mesh
2020-02-04 15:03:10 +01:00
Lukas Matena
79da3a95e1
Clipping plane is now common for Hollowing and SLA supports gizmos
2020-02-03 15:17:18 +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
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
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
6e8bdb2c86
Fixed update of clipping plane when a gizmo was turned off
2020-01-16 13:18:43 +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
6a870ef8bb
Fixed incorrect z-shift when showing hollowed object
2020-01-06 16:02:55 +01:00
Lukas Matena
4d182a5748
Fixed scaling of the holes and instance showing/hiding
2019-12-20 11:33:14 +01:00
Lukas Matena
b3f15b1c98
Merge branch 'master' into lm_tm_hollowing
2019-12-20 10:33:53 +01:00
Lukas Matena
d1f86e0a80
SLA supports gizmo now uses hollowed mesh when available
...
Bugfix: SLA support tree is is now given the hollowed mesh, not the original
Added ImGui separators and change background alpha in hollowing gizmo dialog (to match the other gizmos)
2019-12-20 10:17:59 +01:00
Lukas Matena
57cf3d17e2
First steps on SLA and Hollowing gizmo data sharing
2019-12-17 15:57:24 +01:00
Enrico Turri
f2b8607d11
Fixed positioning of gizmos' imgui dialogs
2019-12-12 13:38:08 +01:00
Lukas Matena
537260494d
Merge branch 'master' into lm_tm_hollowing
2019-12-12 11:37:33 +01:00
Lukas Matena
135660decf
SLA gizmos fix: clipping of points/holes always used coords from the first instance
...
Few warnings fixed
2019-12-12 10:40:28 +01:00
Enrico Turri
57d069bd0a
Some rework on layout of imgui dialogs
2019-12-11 15:30:25 +01:00
tamasmeszaros
3b0241c98b
Fix trianglemesh slicer error with empty meshes
2019-12-06 10:59:05 +01:00
YuSanka
ee71f83939
Localization improvements:
...
* fixed "\n" at the end of phrases
+ updated list of files to localization
+ new PrusaSlicer.pot
+ Japanese localization
2019-12-04 11:14:13 +01:00
Lukas Matena
735f82c019
Hollowing gizmo has now its own shortcut [H], fixed a situation with supports showed in editing mode
2019-11-29 13:56:39 +01:00
Lukas Matena
9dd18a8d6d
Started work on extending EigenMesh3D to account for possible drain holes when raycasting
2019-11-19 11:33:49 +01:00
tamasmeszaros
d4d037792d
Holes are now visible on slices in preview.
2019-11-13 15:55:37 +01:00
Lukas Matena
b6edd5ddb9
SLA support points gizmo renders the holes and does not allow to place a support point in them
2019-11-12 11:48:12 +01:00
Lukas Matena
c1e3be9b27
MeshUtils.cpp: MeshRaycaster is now aware of the clipping plane
2019-09-24 12:58:12 +02:00
Lukas Matena
6bcafd7c83
SLA gizmo no more uses IGL code directly, all was moved to the new MeshRaycaster class
2019-09-17 14:57:57 +02:00