You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
799 B

1 year ago
#pragma once
#include "OccHelper.hpp"
#include "OccShape.hpp"
#include "DomainDiscretization.hpp"
#include "KDTree.hpp"
#include "KDTreeMutable.hpp"
#include <vector>
#include <Eigen/Core>
namespace meshless {
template<typename contains_func>
void fillInteriorWithDensity(const OccShape& shape, DomainDiscretization<Eigen::Vector3d>& domain, const std::function<double(Eigen::Vector3d)>& h, KDTreeMutable& search, contains_func& containsFunc, int type);
template<typename contains_func>
void fillInteriorWithStep(const OccShape& shape, DomainDiscretization<Eigen::Vector3d>& domain, double step, KDTreeMutable& search, contains_func& containsFunc, int type) {
auto f = [=](Eigen::Vector3d) {return step; };
fillInteriorWithDensity(shape, domain, f, search, containsFunc, type);
}
};