4 ttk::QuadrangulationSubdivision::findQuadBary(std::vector<float> &sum,
5 const Quad &quad)
const {
8 std::fill(sum.begin(), sum.end(), std::numeric_limits<float>::infinity());
10 for(
size_t i = 0; i < sum.size(); ++i) {
15 for(
const auto vert : quad) {
16 if(
vertexDistance_[vert][i] == std::numeric_limits<float>::infinity()) {
32 sum[i] = m + n + o + p;
35 sum[i] += std::abs(m - o);
36 sum[i] += std::abs(n - p);
39 return std::min_element(sum.begin(), sum.end()) - sum.begin();
42void ttk::QuadrangulationSubdivision::clearData() {
44 outputPoints_.clear();
45 outputValences_.clear();
46 outputVertType_.clear();
47 outputSubdivision_.clear();
48 quadNeighbors_.clear();
49 vertexDistance_.clear();
std::vector< std::vector< float > > vertexDistance_
int SimplexId
Identifier type for simplices of any dimension.