Commit graph

80 commits

Author SHA1 Message Date
enricoturri1966
c251122e89 Fixed SupportsClipper::render_cut() method 2023-03-22 09:41:30 +01:00
enricoturri1966
1b8553c747 Reintroduced visualization of SLA supports and pad into 3D scene and gizmos Hollow and SLA support as it was in 2.5.0 2023-03-20 14:34:04 +01:00
tamasmeszaros
ee15fe6238 Fix crash with cut gizmo 2023-01-18 15:15:01 +01:00
tamasmeszaros
cf4f07c220 Use shared pointers for SLA preview data
To be able to survive a sudden cancellation and subsequent cleanup in the background thread
2023-01-12 19:38:24 +01:00
tamasmeszaros
440df505b4 SLA backend thread-safety improvements
- Put AnyPtr into separate header, it deserves one
- Add means to handle shared pointers inside AnyPtr
- Use shared pointers in sla csg collection for meshes not owned by Model
- Add method to get the last completed step in PrintObjectBase
- Make SLAPrintObject::get_parts_to_slice() safe to call from UI thread against background thread activity.
2023-01-11 18:24:44 +01:00
tamasmeszaros
a4e50f8219 Fix gizmo cut previews
When using legacy hole drilling algorithm
2023-01-11 14:54:09 +01:00
tamasmeszaros
495a3f3557 Fix unshifted cut slices in sla gizmos 2022-12-20 11:25:48 +01:00
tamasmeszaros
cf63c60c22 Support points trafo seems to be OK now 2022-12-14 18:47:56 +01:00
tamasmeszaros
3f7dcf744b wip on support points elevation bug 2022-12-14 18:19:04 +01:00
enricoturri1966
43c195e227 Fixed conflicts after merge with master 2022-12-07 15:44:27 +01:00
enricoturri1966
028dfb5d9e Tech ENABLE_LEGACY_OPENGL_REMOVAL set as default 2022-12-06 12:17:01 +01:00
enricoturri1966
8eb12cbaf0 Fixed conflicts after merge with master 2022-12-05 13:29:28 +01:00
enricoturri1966
6f18f8f784 Tech ENABLE_RAYCAST_PICKING set as default 2022-12-05 10:24:30 +01:00
Lukas Matena
268365b92d Measurement: refactoring - do not touch common raycaster interface when there is no need 2022-12-02 12:00:26 +01:00
enricoturri1966
fc2f0bad6e Gizmo measure modified to accept single full instance selection, to combine the volumes meshes into a single mesh and pass it to the back end after transform it in world coordinates
Changes embedded into tech ENABLE_GIZMO_MEASURE_WORLD_COORDINATES

Fixed conflicts during rebase to master
2022-12-02 11:59:47 +01:00
tamasmeszaros
f100a59688 Cherry-picking 118f4859c472ccbc30b43101c6674dadc81d7b12
And resolve conflicts
2022-11-29 11:14:19 +01:00
tamasmeszaros
9bc3410474 Re-enable volumes in SLA, use raycasters from canvas in supports gizmo
Got rid of HollowedMesh and Raycaster usage from GizmosCommon pool to prevent crashes
2022-11-29 11:11:32 +01:00
tamasmeszaros
15fa4c42d6 Finalize new sla backend interface
no has_mesh or get_mesh based on states, but specific methods to get the mesh type needed (support, pad, object)

Commented out everything that does not conform in frontend
2022-11-29 11:11:02 +01:00
enricoturri1966
2c9d047520 Fixed conflicts after merge with master 2022-10-31 14:59:41 +01:00
YuSanka
18edc71254 Cut WIP: Code refactoring for ae21667786
+ ObjectList: Fixed list of the types for "Change type" dialog, when object is cut.
+ CutGizmo:
  * Warning line is extended for information about invalid connectors
  * Fixed a crash on undo/Redo, when cutGizmo is active
2022-10-25 15:54:52 +02:00
YuSanka
ae21667786 Cut WIP: First implementation for detection of the invalid connectors position
Implemented cases:
* overlap of some connectors
* check if some connector position is outside of clipper
2022-10-24 16:57:02 +02:00
enricoturri1966
6a2e7930cf Measuring: allow to select single parts of a multipart object while Gizmo Measure is active 2022-10-12 09:10:51 +02:00
Lukas Matena
d7f55253cd Cut: allow enabling/disabling an island 2022-09-19 11:19:18 +02:00
YuSanka
484eae7a1c Merge remote-tracking branch 'PRIVATE/master' into ys_cut 2022-09-08 13:32:14 +02:00
YuSanka
2ac3861b2a Merge remote-tracking branch 'PRIVATE/master' into ys_cut 2022-08-08 10:57:38 +02:00
enricoturri1966
bb36f0df0c Tech ENABLE_OPENGL_ES - 1st installment 2022-07-21 15:43:11 +02:00
YuSanka
89a7f6bdb1 Merge remote-tracking branch 'origin/ys_wx317_master' into ys_cut 2022-06-29 11:44:11 +02:00
enricoturri1966
cfc3988b9f Tech ENABLE_RAYCAST_PICKING - 1st installment - Raytraced picking of printbed 2022-06-10 13:20:52 +02:00
enricoturri1966
cd6155293b Fixed conflicts after merge with master 2022-06-07 11:10:19 +02:00
enricoturri1966
0e3490620e Added method const GLVolume* Selection::get_first_volume() const to simplify client code
Fixed conflicts during rebase with master
2022-06-06 08:44:11 +02:00
enricoturri1966
1a1cf108fc Tech ENABLE_GL_SHADERS_ATTRIBUTES merged into ENABLE_LEGACY_OPENGL_REMOVAL
Fixed conflicts during rebase with master
2022-05-26 10:50:32 +02:00
enricoturri1966
389dc36053 Tech ENABLE_GL_CORE_PROFILE - Use OpenGL core profile context - 1st installment
Fixed conflicts during rebase with master
2022-05-25 15:29:10 +02:00
Lukas Matena
c695dcc141 Cut gizmo: UI simplification and changes 2022-05-19 09:36:14 +02:00
YuSanka
496481e972 Cut WIP: Fix for Undo/Redo 2022-05-12 17:07:13 +02:00
YuSanka
f9e22513c1 Cut WIP:
* Added a first detection if a connector position is valid
* Code cleaning: Deleted unused set_range_and_pos function
* Some code refactoring
2022-03-31 13:59:04 +02:00
YuSanka
a42212487d Cut WIP:
* rewrite ObjectClipper::set_range_and_pos().
A calculation of a normal and distance is extracted from this function
and are used for a putting of connectors to the cut plane.
* Some replacement of items of the CutGizmo window
2022-03-23 16:01:31 +01:00
YuSanka
9658c9c6b7 Merge remote-tracking branch 'origin/master' into ys_cut 2022-03-18 11:32:33 +01:00
Lukas Matena
ff2b8da8dc Fixed crash when pressing 'Reset rotation' button while editing SLA support points (mentioned in #7359) 2022-03-17 11:39:58 +01:00
Lukas Matena
5de93c8784 Fixed incorrect handling of 3rd party 3MFs in SLA mode (#6100 and others) 2022-03-17 11:13:20 +01:00
YuSanka
e5b10ae289 Merge remote-tracking branch 'origin/master' into ys_cut 2022-03-11 15:58:14 +01:00
enricoturri1966
46283cfde3 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES renamed as ENABLE_GL_SHADERS_ATTRIBUTES 2022-03-09 08:22:07 +01:00
enricoturri1966
5ffe010a9d Tech ENABLE_GLINDEXEDVERTEXARRAY_REMOVAL merged into ENABLE_LEGACY_OPENGL_REMOVAL 2022-03-08 14:50:32 +01:00
enricoturri1966
66fa2b1e26 Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Shader: mm_contour
2022-03-08 10:57:43 +01:00
Lukas Matena
9917b8e58b Cut: fixed clipping plane when it is not horizonal 2022-02-17 15:16:47 +01:00
YuSanka
af03bed094 Cut: Implemented update_clipper() 2022-02-17 14:32:08 +01:00
Lukas Matena
389b7ce4bd MeshClipper extended:
- direction and range of the clipping plane can be now set from the outside
- it is now able to show a contour of the cut (not yet ideal with multipart objects that overlap)
2022-02-16 13:42:31 +01:00
enricoturri1966
be6922795d Tech ENABLE_GLINDEXEDVERTEXARRAY_REMOVAL - Replace GLIndexedVertexArray with GLModel: MeshClipper::m_vertex_array 2022-02-10 08:24:36 +01:00
enricoturri1966
6201dad245 Tech ENABLE_COLOR_CLASSES set as default 2022-01-14 08:19:00 +01:00
enricoturri1966
cd4094743e Tech ENABLE_COLOR_CLASSES - 1st installment -> Introduction of classes ColorRGB and ColorRGBA to unify color data definition and manipulation 2021-12-22 10:45:35 +01:00
tamasmeszaros
d336dbe1a5 Fix broken hollowing preview with defined holes and unchecked hollowing
fixes SPE-1121
2021-11-18 17:40:25 +01:00