|
Blender V5.3
|
Public Attributes | |
| Array< int > | face_ptex_offset |
Cached values, are not supposed to be accessed directly.
Definition at line 201 of file BKE_subdiv.hh.
| Array<int> blender::bke::subdiv::Subdiv::[struct].cache_ face_ptex_offset |
Indexed by base face index, element indicates total number of ptex faces created for preceding base faces. This also stores the final ptex offset (the total number of PTex faces) at the end of the array so that algorithms can compute the number of ptex faces for a given face by computing the delta with the offset for the next face without using a separate data structure, e.g.:
const int num_face_ptex_faces = face_ptex_offset[i + 1] - face_ptex_offset[i];
In total this array has a size of num base faces + 1.