Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-17 07:17:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 07:21:24 +0300
commite12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch)
tree8cf3453d12edb177a218ef8009357518ec6cab6a /intern/opensubdiv/internal/opensubdiv_converter_orient_impl.h
parentb3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff)
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'intern/opensubdiv/internal/opensubdiv_converter_orient_impl.h')
-rw-r--r--intern/opensubdiv/internal/opensubdiv_converter_orient_impl.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/intern/opensubdiv/internal/opensubdiv_converter_orient_impl.h b/intern/opensubdiv/internal/opensubdiv_converter_orient_impl.h
index 3e946595bba..aa717f5d99d 100644
--- a/intern/opensubdiv/internal/opensubdiv_converter_orient_impl.h
+++ b/intern/opensubdiv/internal/opensubdiv_converter_orient_impl.h
@@ -27,7 +27,8 @@
namespace opensubdiv_capi {
-inline void reverseFaceVertices(int* face_vertices, const int num_vertices) {
+inline void reverseFaceVertices(int *face_vertices, const int num_vertices)
+{
int last_vert = face_vertices[num_vertices - 1];
for (int i = num_vertices - 1; i > 0; --i) {
face_vertices[i] = face_vertices[i - 1];
@@ -35,21 +36,23 @@ inline void reverseFaceVertices(int* face_vertices, const int num_vertices) {
face_vertices[0] = last_vert;
}
-inline int getLoopWinding(int vert0_of_face, int vert1_of_face) {
+inline int getLoopWinding(int vert0_of_face, int vert1_of_face)
+{
int delta_face = vert1_of_face - vert0_of_face;
if (abs(delta_face) != 1) {
if (delta_face > 0) {
delta_face = -1;
- } else {
+ }
+ else {
delta_face = 1;
}
}
return delta_face;
}
-inline void reverseFaceLoops(
- OpenSubdiv::Far::IndexArray* face_vertices,
- OpenSubdiv::Far::IndexArray* face_edges) {
+inline void reverseFaceLoops(OpenSubdiv::Far::IndexArray *face_vertices,
+ OpenSubdiv::Far::IndexArray *face_edges)
+{
const int num_face_vertices = face_vertices->size();
for (int i = 0; i < num_face_vertices / 2; ++i) {
const int j = num_face_vertices - i - 1;