6b3cee25389d28bd863c02884383ab9c2c2dab0e

This patch adds basic face iterators to the sculpt API. The interface is similar to the existing vertex iterators. It's not C++ (though it does mark private fields in PBVHFaceIter as private if compiling under C++). Example: ``` PBVHFaceIter fd; BKE_pbvh_face_iter_begin(pbvh, node, fd) { /* Face reference and face index */ PBVHFaceRef face = fd->face; int face_index = fd->index; /* Can read and modify hide flag if it exist (it may not) */ if (fd->hide) { *fd->hide ^= true; /* toggle hide */ } /* Can read and modify face set if it exists */ if (fd->face_set) { *fd->face_set = something; } /*Can read vertices*/ for (int i=0; i<fd.verts_num; i++) { float *co = SCULPT_vertex_co_get(ss, fd.verts[i]); } } BKE_pbvh_face_iter_end(fd); ``` Reviewed By: Brecht Von Lommen and Hans Goudey Differential Revision: https://developer.blender.org/D16225 Ref D16225
…
.. Keep this document short & concise, linking to external resources instead of including content in-line. See 'release/text/readme.html' for the end user read-me. Blender ======= Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing. .. figure:: https://code.blender.org/wp-content/uploads/2018/12/springrg.jpg :scale: 50 % :align: center Project Pages ------------- - `Main Website <http://www.blender.org>`__ - `Reference Manual <https://docs.blender.org/manual/en/latest/index.html>`__ - `User Community <https://www.blender.org/community/>`__ Development ----------- - `Build Instructions <https://wiki.blender.org/wiki/Building_Blender>`__ - `Code Review & Bug Tracker <https://developer.blender.org>`__ - `Developer Forum <https://devtalk.blender.org>`__ - `Developer Documentation <https://wiki.blender.org>`__ License ------- Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license. See `blender.org/about/license <https://www.blender.org/about/license>`__ for details.
Description
Languages
C++
78.1%
Python
15%
C
2.8%
GLSL
1.8%
CMake
1.2%
Other
0.9%