Commit graph

83 commits

Author SHA1 Message Date
Filip Sykala - NTB T15p
8e35ece403 Bevel only tip of spike which ends in duplicit point 2023-01-26 10:22:27 +01:00
Filip Sykala - NTB T15p
badbe9ddba Remove spikes from glyph shape 2023-01-26 08:04:44 +01:00
Filip Sykala - NTB T15p
8f09c3ac82 WIP: Create another approach to heal shape BUT it is not working 2023-01-20 17:33:53 +01:00
Filip Sykala - NTB T15p
b1f9d50aad Rename function: collect_duplications -> collect_duplicates
more english correct name
2022-11-29 13:52:47 +01:00
Filip Sykala - NTB T15p
f662000414 Fix for issue 2022-11-22 19:24:35 +01:00
Filip Sykala - NTB T15p
e3ecbe7d71 Fix for linux build 2022-11-21 12:47:14 +01:00
Filip Sykala - NTB T15p
58592593af Add new volume as cut surface by definition in style 2022-11-21 10:15:20 +01:00
Filip Sykala - NTB T15p
58c028d904 Add invalidation of wx font list when open combo box. Fix issue with new installed fonts 2022-11-08 14:54:46 +01:00
Filip Sykala - NTB T15p
aa00da1b7e Add log for not openable font file 2022-11-08 13:27:02 +01:00
Filip Sykala - NTB T15p
e531df6dbb Merge branch 'ys_emboss_with_master' into fs_emboss 2022-11-04 13:00:09 +01:00
Filip Sykala - NTB T15p
d2da63db41 Fix of bad font glyph shape 2022-11-03 14:55:49 +01:00
YuSanka
1c061dc7a1 After merge fixes 2022-10-27 14:23:50 +02:00
Filip Sykala - NTB T15p
9fef0cd091 Fix for whistle model. Issue 51.3
Sort patches by distance to expolygon projection depth center and add patches until expolygon is filled
2022-10-19 19:15:59 +02:00
Filip Sykala - NTB T15p
436384cf65 Fix:
\src\libslic3r\Emboss.cpp(484): warning C4305: '=': truncation from 'double' to 'float'
2022-10-14 07:51:16 +02:00
Filip Sykala - NTB T15p
ce71144c7c Add minimal value for glyph flatness to not create huge amount of points on curve
Fix for font: TREFOIL.TTF issue 74
2022-10-13 13:33:24 +02:00
Filip Sykala - NTB T15p
8343e81053 Fix test
+ Comment debug output
+ Add was_canceled in cut surface
2022-10-12 19:26:45 +02:00
Filip Sykala - NTB T15p
3fa3ea0bb4 Projection text for cut surface is made with double preccission 2022-10-12 16:17:38 +02:00
Filip Sykala - NTB T15p
8511b280bf Heal shape with points close to line
(after conversion to floating point it is on the other side of line)
ExPolygons indexing (fixed)
2022-10-11 13:35:52 +02:00
Filip Sykala - NTB T15p
072c1752b1 Cancelation in the middle of getting text shape 2022-09-23 14:07:17 +02:00
Filip Sykala - NTB T15p
24b71ada5e Fix for font Bahnschrift -
Simplify use also pftNonZero
2022-09-12 16:10:02 +02:00
Filip Sykala - NTB T15p
27e640180f Add unprojecting of SurfacePatch contours 2022-08-31 08:35:43 +02:00
Filip Sykala - NTB T15p
16a84ebc49 Fix build 2022-08-25 15:01:09 +02:00
Filip Sykala - NTB T15p
63121cee2e Better healing for Glyph shape - remove duplicit points + self intersections
Add search of intersecting points (compared with CGAL)
Triangulation can [optionaly] accept multi points
2022-08-25 13:28:10 +02:00
Filip Sykala - NTB T15p
003c7fc54f Rename FontItem to EmbossStyle 2022-08-03 10:29:05 +02:00
Filip Sykala - NTB T15p
5558523b19 Fix for emboss from exactly -Z direction 2022-07-26 09:15:10 +02:00
Filip Sykala
eea0ce9569 Calculation of projection distances 2022-06-09 15:07:44 +02:00
Filip Sykala
864d1e5830 Cut surface in backend job
Store flag about use surface(into 3mf and style)
GUI: Add checkbox to start using model surface
2022-05-04 19:42:39 +02:00
Filip Sykala
a1d7040902 WIP: cut surface of model
update emboss icons to not be soo huge - pixel preccisse
2022-04-26 17:43:38 +02:00
Filip Sykala
630b1bb956 say user that Text can’t be empty 2022-04-07 17:06:26 +02:00
Filip Sykala
331d4d4557 Show user warning about unknown symbols by font inside of input text
Fix correct selection of collection ascent, descent, ...
Remove boost log from emboss --> not work properly on thread
2022-04-07 16:34:14 +02:00
Filip Sykala
87fc2c4298 emboss do not twice copy glyph when acess to cache 2022-03-25 09:15:41 +01:00
Filip Sykala
da15e63a46 fix link problem 2022-03-24 12:07:36 +01:00
Filip Sykala
0d77aaaa8d Fix memory leaks 2022-03-24 11:45:10 +01:00
Filip Sykala
2621d66cb0 Const improve 2022-03-21 12:50:46 +01:00
Vojtech Bubnik
c11948a084 FontItem improvmement: Use default constructors to let the compiler
generate move constructor and move assignement.
Also used some move operators to reduce unnecessary memory allocations.

Cherry picked commit: 120a85d4c4b90ffafced442ee5e63e5f794f6945
2022-03-17 12:37:21 +01:00
Filip Sykala
87f22765ba Separate functionality 2022-03-15 19:53:43 +01:00
Filip Sykala
3b55de7e0b change std:err to BOOST_LOG_TRIVIAL(error) 2022-03-08 09:50:43 +01:00
Filip Sykala
6fdaee3cfe Fix data type of collection
Fix warnings
../src/libslic3r/Emboss.cpp:135:24: warning: comparison of integer expressions of different signedness: 'int' and 'const unsigned int' [-Wsign-compare]
../src/libslic3r/Emboss.cpp:653:20: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
../src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp:2057:12: warning: unused variable 'count_icons' [-Wunused-variable]
../src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp:2058:12: warning: unused variable 'count_states' [-Wunused-variable]
2022-03-07 12:16:24 +01:00
Filip Sykala
4e97830c2b Fix of commit 4c416bc747
Separate escape characters of double quotted XML attribute value
2022-03-02 08:40:27 +01:00
Filip Sykala
18d269506a add index of font inside of collection to FontProp(font property) + serialization/deserialization (3mf + appConfig)
separate glyph cache from FontFile
2022-02-28 18:32:50 +01:00
Filip Sykala
ebbdaf7336 Fix boldness to be in font points 2022-02-22 09:55:48 +01:00
Filip Sykala
5ffa19b529 Unify place of transformation 2022-02-21 16:12:38 +01:00
Filip Sykala
71d4c86a6a Fix remove debug calculation of bounding box 2022-02-16 15:16:30 +01:00
Filip Sykala
bed5232a22 Using unit per em instead of ascent 2022-02-16 14:57:57 +01:00
Filip Sykala
057abce935 update font after bold click 2022-02-02 14:07:52 +01:00
Filip Sykala
d55f09d75b add Enumerate fonts. not Finished 2022-01-21 20:19:06 +01:00
Filip Sykala
4d31128837 Separate font manager to be able manage imgui font for all fonts
Separate FontListSerializable
Rename Emboss::Font to Emboss::FontFile
2022-01-13 22:00:53 +01:00
Filip Sykala
ef6860d4ee Move font property inside of font item to store together with font 2022-01-07 18:50:57 +01:00
Filip Sykala
a9bfef6ca6 Remove bad pracise to move const data for emboss 2022-01-06 17:44:53 +01:00
Filip Sykala
4ec4bafe19 Create Emboss::Font as unique ptr not optional
Reason: Job need pointer on font until finished
2022-01-06 16:12:15 +01:00