Skip to content
Permalink
Browse files

meshing: clang-fromat

  • Loading branch information...
bpowers committed Feb 10, 2017
1 parent 9dc04db commit 7d769ac1cc0e44122393662dc0a3254dd53c0778
Showing with 4 additions and 3 deletions.
  1. +1 −0 .clang-format
  2. +3 −3 impl/include/meshing.h
@@ -8,6 +8,7 @@ AllowShortLoopsOnASingleLine: false
IndentCaseLabels: false
AlwaysBreakTemplateDeclarations: true
AccessModifierOffset: -2
Standard: Cpp11

DerivePointerAlignment: false
PointerAlignment: Right
@@ -33,11 +33,11 @@ inline ssize_t simple(const vector<Bitmap<T>> &bitmaps) {
return 0;

auto meshes = 0;
auto len = bitmaps[0].wordCount() / 8; // 8 words per 64-bit int
auto len = bitmaps[0].wordCount() / 8; // 8 words per 64-bit int

for (size_t i = 0; i < bitmaps.size()-1; i += 2) {
for (size_t i = 0; i + 1 < bitmaps.size(); i += 2) {
const auto bitmap1 = bitmaps[i].bitmap();
const auto bitmap2 = bitmaps[i+1].bitmap();
const auto bitmap2 = bitmaps[i + 1].bitmap();

if (bitmapsMeshable(bitmap1, bitmap2, len))
meshes++;

0 comments on commit 7d769ac

Please sign in to comment.
You can’t perform that action at this time.