Commit Graph

25 Commits

Author SHA1 Message Date
32c5acd5fd Drill holes one by one and display warning of any of them fails
Drill with cgal::minus for now
2021-03-16 09:31:03 +01:00
ca81fdfa0d Fix Gizmo preview with hollowed mesh 2021-03-08 17:38:10 +01:00
9e3491bec5 Painting gizmos fixes:
- modifiers are not rendered in neutral color when a painting gizmo is open, so they are distinguishable from model parts
- modifiers are now correctly handled by clipping plane (the cut was not triangulated for them)
2020-10-06 12:06:39 +02:00
03e7a20e87 Merge remote-tracking branch 'origin/master' into ys_ph_printers 2020-07-21 09:47:29 +02:00
a1eeb569db Preset and PresetBundle are moved to the _libslic3r_ folder 2020-06-16 17:03:06 +02:00
602e914bb0 Bugfix: incorrect scaling of clipping plane cuts in SLA support gizmo 2020-06-16 16:11:42 +02:00
0a08005d70 Fixed a crash when switching from SLA to FDM with a gizmo active
If a gizmo used SupportsClipper or HollowedMesh common data, it would attempt to update from a dead SLAPrintObject
2020-06-03 16:39:12 +02:00
edcaab8b0a 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
7eab7f416c Removed immediate OpenGL mode calls for clipping plane rendering 2020-05-21 10:25:31 +02:00
135a3bc01b FDM supports gizmo now uses VBOs instead of immediate mode 2020-04-09 15:56:43 +02:00
84831f331e Fixed a crash when switching to Preview 2020-04-08 17:22:30 +02:00
dc97f71c8d Clipping plane can now handle multiple-part objects 2020-04-08 11:52:22 +02:00
3e136a821a Improved the FDM supports gizmo dialog
Removed unused code
Fixed a clipping-plane related crash
Fixed a crash in hollowing gizmo when no hollowed mesh was provided
Forbid opening the gizmo when a part of an object is selected
2020-04-08 09:37:49 +02:00
70dc1721a1 SLA supports gizmo is now enabled and uses the new infrastructure 2020-04-07 16:47:39 +02:00
d3fcf2335d SupportsClipper implementation 2020-04-07 16:47:39 +02:00
207778f347 InstancesHider allows to show/hide supports on demand 2020-04-07 16:47:39 +02:00
7f6096784c ObjectClipper implementation, hollowing gizmo reenabled
ObjectClipper tracks active mesh (incl. possible hollowing), remembers clipping plane position and can render the cut on demand
Hollowing gizmo uses the new infrastructure
2020-04-07 16:45:16 +02:00
04899d536b Raycaster can now handle multiple volumes
This is necessary for future FDM supports gizmo. SLA objects only have one volume, so it wasn't needed until now.
2020-04-07 16:42:59 +02:00
9e5d680d6c Raycaster wrapper
The raycaster manages a MeshRaycaster object that the gizmo can ask to perform raycasts
If the hollowed mesh tracker is enabled and the hollowed mesh is newly calculated/invalidated, the raycaster automatically updates.
2020-04-07 16:40:59 +02:00
4b6e1da6b8 Hollowed mesh tracker implementation
The class tracks state of the backend calculation and if there is a hollowed/drilled mesh, it can provide a pointer to it
2020-04-07 16:40:10 +02:00
4c06da2b78 Dependencies check in debug mode
Some common resources can depend on each other - this checks that the requirements are consistent
2020-04-07 16:39:18 +02:00
5adc955364 InstancesHider implementation
Any gizmo can now ask for hiding all but the active instance by returning proper value from on_get_requirements
2020-04-07 16:39:06 +02:00
3c49db94f5 Flattening gizmo now uses the new CommonDataPool to store pointer to active object 2020-04-07 16:35:52 +02:00
f1d7420278 Common gizmos data are now handled by the CommonGizmosDataPool object 2020-04-07 16:35:52 +02:00
e999cb8a7b First installation of common gizmo data pool 2020-04-07 16:35:52 +02:00