Commit Graph

55 Commits

Author SHA1 Message Date
Lukas Matena
529643dc5b Minor improvements:
- const corectness
- volatile -> std::atomic
- GUI::format
- encoding issues
2021-11-12 06:49:09 +01:00
Filip Sykala
789b79c76f Change float slider to wrap function. Enrico's request 2021-11-05 14:48:37 +01:00
Filip Sykala
f34481807d Fix translation suggestion by @Oleksandra Iushchenko 2021-10-21 11:01:15 +02:00
Filip Sykala
5f1fbea230 Fix for:
../src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp:102:46: error: control reaches end of non-void function [-Werror=return-type]
src\slic3r\GUI\Gizmos\GLGizmoSimplify.cpp(103) : warning C4715: '<lambda_8434c3588ffcd21c397d2cfeb10266a5>::operator()': not all control paths return a value
2021-10-20 11:19:15 +02:00
Filip Sykala
22253d2289 open simplification on center when open from notification 2021-10-19 18:53:42 +02:00
Filip Sykala
e22a006863 Add live preview on open gizmo
Add delay 250ms before process for live move with slider
Add short cut for unmodified mesh in processing
2021-10-19 16:51:03 +02:00
Filip Sykala
a1fd4c85f4 Fix bloating of history with live preview 2021-10-19 16:15:27 +02:00
Filip Sykala
02bf72a573 Fix
../src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp:433:11: warning: unused variable 'checkbox_width' [-Wunused-variable]
../src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp:227:27: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
../src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp:245:27: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
2021-10-18 20:15:11 +02:00
Filip Sykala
248fdbc76a Do not disapeared apply button 2021-10-18 19:20:20 +02:00
Filip Sykala
ddf7e65a69 Add [esc] to interupt preview in simplify 2021-10-18 16:47:25 +02:00
Filip Sykala
e6def60b2c live preview in simplification 2021-10-18 16:01:32 +02:00
Filip Sykala
fb86bdd176 Fix. Allow simplify volume inside object, fix drawing wireframe 2021-10-04 12:29:45 +02:00
Filip Sykala
fbd2ac051a fix assert 2021-10-04 09:30:30 +02:00
Filip Sykala
6226503054 Fix wireframe transformation when supports in SLA are added 2021-10-04 09:23:06 +02:00
Filip Sykala
2ff85629b9 add close suggestion notification 2021-10-01 17:40:30 +02:00
David Kocik
0fcbc006cb PrintInfoNotificationLevel with icon 2021-10-01 15:03:40 +02:00
Filip Sykala
3ebb13632b Add checkbox for show wire frame 2021-09-30 13:56:04 +02:00
Filip Sykala
a2c28b38ed Fix: ../src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp:411:21: warning: comparison of integer expressions of different signedness: 'std::vector<Slic3r::ModelObject*>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 2021-09-30 13:15:21 +02:00
Filip Sykala
0ee512bf08 Add Rendering wire frame when simplify 2021-09-30 13:03:15 +02:00
Filip Sykala
2b62e37b16 Not buildable render contour 2021-09-30 09:40:06 +02:00
Filip Sykala
7ced14a72c Add call for render 2021-09-30 09:23:04 +02:00
Filip Sykala
200fb96743 Fix for deleted object after preview 2021-09-29 19:06:31 +02:00
Vojtech Bubnik
53a5c23d0f Eradicated admesh from TriangleMesh:
TriangleMesh newly only holds indexed_triangle_set and
TriangleMeshStats. TriangleMeshStats contains an excerpt of stl_stats.
TriangleMeshStats are updated when initializing with indexed_triangle_set.

Admesh triangle mesh fixing is newly only used when loading an STL.
AMF / 3MF / OBJ file formats are already indexed triangle sets, thus
they are no more converted to admesh stl_file format, nor fixed
through admesh repair machinery. When importing AMF / 3MF / OBJ files,
volume is calculated and if negative, all faces are flipped. Also
a bounding box and number of open edges is calculated.

Implemented its_number_of_patches(), its_num_open_edges()
Optimized its_split(), its_is_splittable() using a visitor pattern.

Reworked QHull integration into TriangleMesh:
    1) Face normals were not right.
    2) Indexed triangle set is newly emitted instead of duplicating
       vertices for each face.

Fixed cut_mesh(): Orient the triangulated faces correctly.
2021-09-20 17:12:22 +02:00
David Kocik
817c151550 Removes bottom status bar.
StatusBar class calls are commented out and replaced with notifications.
SlicicingProgress notification shows progress of slicing, ProgressIndicator notification handles other progress information, like arrange objects etc.
2021-09-10 14:35:13 +02:00
Lukas Matena
a9ae2460ad Naming of the entering/leaving snapshots is now more generic,
it uses the actual name of the gizmo. Also, the keyboard shortcut
is now appended to the name, instead of being duplicated in it.
2021-09-03 13:53:07 +02:00
Filip Sykala
3f284bdcce Fix Crash when delete model during simplification 2021-09-01 20:29:27 +02:00
Vojtech Bubnik
b0a4b817a3 Slight optimization of GLGizmoSimplify::process():
Moved a static variable from inside a lambda outside as the static
inner variable initialization & access has to be made thread safe.
2021-08-27 11:30:37 +02:00
Filip Sykala
25a21320d5 Fix: Do not revert changes on change GLGizmoBase::m_state when apply was used 2021-08-26 14:21:54 +02:00
Filip Sykala
1273869dc8 Fix:
../src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp:109:23: warning: comparison of integer expressions of different signedness: 'std::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
../src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp:132:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
../src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp:171:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
Severity Code Description Project File Line Suppression State
Warning C26451 Arithmetic overflow: Using operator '-' on a 4 byte value and then casting the result to a 8 byte value. Cast the value to the wider type before calling operator '-' to avoid overflow (io.2). libslic3r_gui C:\GIT\slic3r\src\slic3r\GUI\Gizmos\GLGizmoSimplify.cpp 143
2021-08-25 18:25:37 +02:00
Filip Sykala
ea0bad94bd @Vojta request --> change ratio to decimation ratio 2021-08-25 13:09:37 +02:00
Filip Sykala
3417e10f8a Fix
../src/libslic3r/QuadricEdgeCollapse.cpp:565:22: warning: comparison of integer expressions of different signedness: 'const int' and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare]
../src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp:48:15: warning: unused variable 'min_triangle_count' [-Wunused-variable]
../src/slic3r/GUI/Gizmos/GLGizmoSimplify.cpp:160:9: warning: unused variable 'wanted_count' [-Wunused-variable]
..\src\slic3r\GUI\Gizmos\GLGizmoSimplify.cpp(167): warning C4305: '=': truncation from 'double' to 'float'
2021-08-24 08:21:14 +02:00
Filip Sykala
b0f7832d4a remove unused variable 2021-08-23 16:26:21 +02:00
Filip Sykala
db4e01a0df Simplify dialog,
remove fast reduction - create mistake
2021-08-23 15:57:09 +02:00
Filip Sykala
81b7e39df6 call render in main thread by function callAfter(hint by @Vojtech) 2021-08-20 14:29:52 +02:00
Filip Sykala
0e1e5f1b6b Add dirty state into Gizmo (hint by @DavidKocik) 2021-08-20 09:13:09 +02:00
Filip Sykala
4c075d42a1 Add restriction for simplification
Refuse outgoing during simlification.
Refuse start simplification when other Gizmo is active
Fix close after preview to revert changes
Allow change model for simplification
2021-08-18 10:37:08 +02:00
Filip Sykala
1052922752 FIX: extra frame request
Do not freeze bargraph in Siplify dialog when no mouse move.
2021-08-17 15:28:08 +02:00
Filip Sykala
9c9aaeeaa4 Add private member prefix m_ 2021-08-17 08:58:45 +02:00
Filip Sykala
3d2f9a7750 fix position of window 2021-08-16 15:30:33 +02:00
Filip Sykala
e5ecf8e1fc Fix: Do not close dialog after preview 2021-08-16 13:06:51 +02:00
Lukas Matena
a4ea221f5b Fixed build on Linux, abs->std::abs 2021-08-06 13:03:30 +02:00
Filip Sykala
5236207b82 Merge master 2021-08-02 10:46:47 +02:00
YuSanka
56c5b85aa1 ObjectDataViewModel: Added function to add warning icon 2021-07-23 13:48:38 +02:00
Filip Sykala
6fc8254f92 Try fix warning icon 2021-07-22 15:17:23 +02:00
Filip Sykala
c06b477c67 FIX schedule_extra_frame on end; 2021-07-21 15:48:10 +02:00
Filip Sykala
e730999c71 Fix gui size 2021-07-21 11:58:01 +02:00
Filip Sykala
9b646f3e42 truncate model name 2021-07-21 08:34:43 +02:00
Filip Sykala
c0633f47a1 GUI edits 2021-07-20 18:39:09 +02:00
Filip Sykala
b9d97de9d2 Change UI
Fix minimal triangle count
Fix progress rendering
2021-07-20 15:07:48 +02:00
Filip Sykala
4595efbff2 Fix Typo 2021-07-20 12:05:44 +02:00