|
Blender V5.3
|
#include <BKE_grease_pencil.hh>
Public Attributes | |
| Vector< int > | fill_map |
| Vector< int > | fill_offsets |
Definition at line 57 of file BKE_grease_pencil.hh.
| Vector<int> blender::bke::greasepencil::FillCache::fill_map |
A cache of all the fills in the drawing.
Uses the "fill_id" attribute to create groups of curves (fills) that are triangulated together. A fill ID of 0 indicates that the corresponding curve is not filled. Values != 0 are used as group IDs (arbitrary integers, not indices!).
The fill_map is an index mapping where groups are the consecutive indices of curves in each fill (ordered by the first occurrence of the fill ID). The fill_offsets are offset indices into fill_map where each range represents a fill.
For example:
curve index: 0 1 2 3 4 5 6 7 8 fill_id: 0 0 a 0 a c a b b (a, b, c are some integers != 0)
fill_map: 2 4 6 5 7 8 fill_offsets: 0 3 4 6 fills: _____ _ ___ a c b (ordered by the first occurrence in fill_id)
Definition at line 79 of file BKE_grease_pencil.hh.
Referenced by blender::bke::greasepencil::Drawing::fills().
| Vector<int> blender::bke::greasepencil::FillCache::fill_offsets |
Definition at line 80 of file BKE_grease_pencil.hh.
Referenced by blender::bke::greasepencil::Drawing::fills().