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
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
cmake_minimum_required(VERSION 3.10.0)

project(gc_polyscope_example)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# Check if Boost is installed on the system
Expand Down
1 change: 1 addition & 0 deletions deps/polyscope/include/polyscope/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#pragma once

#include <string>
#include <cstdint>


namespace polyscope {
Expand Down
8 changes: 4 additions & 4 deletions modules/include/modules/knn-cpp/knncpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ namespace knncpp
indices.setConstant(knn, queryPoints.cols(), -1);
distances.setConstant(knn, queryPoints.cols(), -1);

#pragma omp parallel for num_threads(threads_)
//#pragma omp parallel for num_threads(threads_)
for(Index i = 0; i < queryPoints.cols(); ++i)
{
Index *idxPoint = &indices.data()[i * knn];
Expand Down Expand Up @@ -1216,7 +1216,7 @@ namespace knncpp
Index *indicesRaw = indices.data();
Scalar *distsRaw = distances.data();

#pragma omp parallel for num_threads(threads_)
//#pragma omp parallel for num_threads(threads_)
for(Index i = 0; i < queryPoints.cols(); ++i)
{

Expand Down Expand Up @@ -1461,7 +1461,7 @@ namespace knncpp

Scalar maxDistPart = maxDist_ / buckets_.size();

#pragma omp parallel for num_threads(threads_)
//#pragma omp parallel for num_threads(threads_)
for(Index c = 0; c < queryPoints.cols(); ++c)
{
std::set<Index> candidates;
Expand Down Expand Up @@ -1674,7 +1674,7 @@ namespace knncpp
index_->knnSearch(queryPts, indicesF, distancesF, knn, searchParams_);

// make result matrices compatible to API
#pragma omp parallel for num_threads(searchParams_.cores)
//#pragma omp parallel for num_threads(searchParams_.cores)
for(Index i = 0; i < indices.cols(); ++i)
{
bool found = false;
Expand Down
2 changes: 2 additions & 0 deletions src/knot_untangling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#include "polyscope/surface_mesh.h"

#include <iostream>
#include <chrono>
#include <filesystem>

#include <igl/triangle/triangulate.h>

Expand Down
2 changes: 2 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include "polyscope/surface_mesh.h"

#include <iostream>
#include <chrono>
#include <filesystem>

#include <igl/triangle/triangulate.h>

Expand Down