topology.hh 650 Bytes
Newer Older
Philip Trettner's avatar
Philip Trettner committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once

#include <vector>

#include "../Mesh.hh"

namespace polymesh {

/// Given a face handle, returns the topologically farthest (but finite) face
/// (i.e. the last face that would be visited in a BFS)
face_handle farthest_face(face_handle f);

/// ======== IMPLEMENTATION ========

/*inline face_handle farthest_face(face_handle f)
{
    std::vector<face_index> q_curr;
    std::vector<face_index> q_next;

    q_curr.push_back(f.idx);

    face_handle last_f = f;

    while (!q_curr.empty())
    {
        for (auto f : q_curr)
        {
            // TODO
        }

        std::swap(q_curr, q_next);
    }

    return last_f;
}*/

}