Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/surface/mesh_ray_tracer.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
#include "geometrycentral/surface/mesh_ray_tracer.h"

// we need to include these for nanort before it tries to include them inside the anonymous namespace.
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <limits>
#include <memory>
#include <queue>
#include <string>
#include <vector>
namespace {
// put it in an anonymous namespace to avoid exposing symbols
#include "nanort.h"
} // namespace

namespace geometrycentral {
namespace surface {
Expand Down
20 changes: 20 additions & 0 deletions src/utilities/knn.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
#include "geometrycentral/utilities/knn.h"

// we need to include these for nanoflann before it tries to include them inside the anonymous namespace.
#include <algorithm>
#include <array>
#include <atomic>
#include <cassert>
#include <cmath> // for abs()
#include <cstdint>
#include <cstdlib> // for abs()
#include <functional> // std::reference_wrapper
#include <future>
#include <istream>
#include <limits> // std::numeric_limits
#include <ostream>
#include <stack>
#include <stdexcept>
#include <unordered_set>
#include <vector>
namespace {
// put it in an anonymous namespace to avoid exposing symbols
#include "nanoflann.hpp"
}

using std::vector;

Expand Down