Cleanup: Move gpencil_geom.c to C++

This will help enable development on optimizations to the perimeter
calculation here. Using C++ data structures like Array can make the
code easier to read as well.

Longer term, this can help improve integration with attributes
and possibly the new curve code (since strokes and curves are
quite similar in theory).

Differential Revision: https://developer.blender.org/D11941
This commit is contained in:
Hans Goudey 2021-07-16 13:00:33 -04:00
parent c4df8ac1a4
commit feba1fe974
2 changed files with 223 additions and 214 deletions

View File

@ -143,7 +143,7 @@ set(SRC
intern/geometry_set_instances.cc
intern/gpencil.c
intern/gpencil_curve.c
intern/gpencil_geom.c
intern/gpencil_geom.cc
intern/gpencil_modifier.c
intern/hair.c
intern/icons.cc