Commit Graph

30 Commits (fc447fe8479bc8c4cd4308b4905837fc93371ac8)

Author SHA1 Message Date
huxingyi 5426b1afcc Add a simple mesh hole fixer 2020-04-14 21:20:19 +09:30
Jeremy Hu cc0db997a4 Fix vector uninitialized 2019-12-31 21:35:31 +09:30
Jeremy Hu 3b4d4ddc52 Update libigl and eigen
libigl: v2.1.0
eigen: 3.3.7

Old version of eigen will cause QuadriFlow crash on windows becase of this bug:
https://eigen.tuxfamily.org/bz/show_bug.cgi?id=1634
2019-12-31 21:16:33 +09:30
Jeremy Hu 103ca74458 Fix crash 2019-12-30 19:58:26 +09:30
Jeremy Hu dd628b6af7 Integrate QuadriFlow
https://github.com/hjwdzh/QuadriFlow
2019-12-28 14:51:59 +09:30
Jeremy Hu e725bdba8c Fix angle calculation 2019-08-19 21:09:21 +09:30
Jeremy Hu 471a324bb3 Add UV island padding 2019-08-11 22:27:02 +09:30
Jeremy Hu 877ef1ff4c Fix build 2019-08-10 23:51:38 +09:30
Jeremy Hu dc33e2f11c Add setTexelSize api for simpleuv 2019-08-10 23:33:49 +09:30
Jeremy Hu dacff70eaa Use Eigen to do vector math on UV 2019-08-10 23:12:08 +09:30
Jeremy Hu b840482050 New improvement on UV unwrapping
Automatically try rotating each island on 5, 15, 20, 25, 30, 35, 40, 45 degrees, and choose the best rotation.
2019-08-10 12:24:47 +09:30
Jeremy Hu 96f676cae0 Improve UV quality
Now there are more pieces been generated during unwrapping but the overall quality is better than before.
2019-08-10 10:31:23 +09:30
Jeremy Hu 13db7ee97b Add check UV 2019-08-10 07:57:26 +09:30
Jeremy Hu a6b9ac7bf1 Scale UV by area ration 2019-08-09 22:03:42 +09:30
Jeremy Hu f5a70dfd9e Segment UV by normal 2019-08-09 19:56:31 +09:30
Jeremy Hu af792a9bdc Add javascript variable inputs: Float, Int, Check, Color, Select 2019-07-26 10:50:32 +09:30
Jeremy Hu fc341986c0 Fix texture glitchs 2019-05-12 17:45:07 +09:30
Jeremy Hu 499c3f439a Use CGAL triangulation
Replace triangulation algorithm with CGAL triangulate_faces, the quality of generated mesh improved a lot.
This commit also reduced max uv packer times.
2019-03-07 22:43:41 +09:30
huxingyi 2d841fb58b Fix build on ubuntu 2019-03-03 14:44:48 +08:00
Jeremy Hu 8ace5b43de Fix triangulation of uv unwrapping 2019-01-24 23:57:47 +09:30
Jeremy Hu 3f3134cc0e Fix typo 2018-12-29 09:32:53 +09:30
Jeremy Hu f0334c3eec Fix crash on uvunwrapping #18 2018-12-01 23:21:53 +09:30
Jeremy Hu a2a5b774aa Fix uvunwrap
The As-Rigid-As-Possible method of parametrization sometimes failed, so added Least-Squares-Conformal-Maps method as a fallback option.
2018-11-29 11:55:55 +09:30
Jeremy Hu f6bafdb720 Fix typo 2018-11-18 07:02:12 +08:00
Jeremy Hu 637356e895 Fix undo
Add a crc64 hash check for history keeping to avoid repeated snapshot.
Besides, before, there is a logic error in the undo implementation, which recover the most recent snapshot from undo stack, so user need undo twice and at the second undo get the expected result. This incorrect behavior got fixed.
2018-10-25 14:27:59 +08:00
Jeremy Hu 0608e2af1c Fix uv unwrapper
UV unwrapper may run into infinite loop if the parametrization failed with some infinite value.
2018-10-17 11:19:17 +08:00
Jeremy Hu 7fa29dcc48 Fix texture generation 2018-10-16 08:04:08 +08:00
Jeremy Hu 7e0591de6b Fix build 2018-10-16 00:21:05 +08:00
Jeremy Hu 640b84b2f2 Fix build 2018-10-15 23:22:49 +08:00
Jeremy Hu a4a734a67b Repleace the uv unwrapping library with simpleuv
https://github.com/huxingyi/simpleuv
2018-10-15 23:02:31 +08:00