diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-11-30 14:55:50 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-11-30 15:00:01 +0400 |
commit | b9445106b23b0da0436bcca7be0131b577980a5a (patch) | |
tree | 1613d906ae4ee8459bbb4fec308005c3dce9a01c /source/blender/blenlib/CMakeLists.txt | |
parent | bf55eeb2163c3afd12db36b9f48d48d998aa21a2 (diff) |
Geometry API: polyfill2d, ear clipping polygon filling functions.
Simple/predictable polygon filling functions (no hole support)
originally from libgdx which have some advantages over scanfill.
- always creates the same number of triangles (never any missing faces).
- gives same results for any affine transformation.
- doesn't give so many skinny faces by default.
made some changes for Blender.
- remove last ears first (less to memmove)
- step over the ears while clipping to avoid some verts becoming fans to most of the other.
Diffstat (limited to 'source/blender/blenlib/CMakeLists.txt')
-rw-r--r-- | source/blender/blenlib/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/CMakeLists.txt b/source/blender/blenlib/CMakeLists.txt index d855d45760a..00adb375c41 100644 --- a/source/blender/blenlib/CMakeLists.txt +++ b/source/blender/blenlib/CMakeLists.txt @@ -82,6 +82,7 @@ set(SRC intern/md5.c intern/noise.c intern/path_util.c + intern/polyfill2d.c intern/quadric.c intern/rand.c intern/rct.c @@ -148,6 +149,7 @@ set(SRC BLI_mempool.h BLI_noise.h BLI_path_util.h + BLI_polyfill2d.h BLI_quadric.h BLI_rand.h BLI_rect.h |