1#include <Unittests/unittests_common.hh>
7class OpenMeshTrimeshCirculatorEdge :
public OpenMeshBase {
15 void SetUp()
override {
26 vh.push_back(mesh_.add_vertex({0.0, 0.0, 0.0}));
27 vh.push_back(mesh_.add_vertex({1.0, 0.0, 0.0}));
28 vh.push_back(mesh_.add_vertex({1.0, 1.0, 0.0}));
29 vh.push_back(mesh_.add_vertex({0.0, 1.0, 0.0}));
30 mesh_.add_face(vh[0], vh[1], vh[2]);
31 mesh_.add_face(vh[0], vh[2], vh[3]);
34 vh.push_back(mesh_.add_vertex({2.0, 0.0, 0.0}));
35 vh.push_back(mesh_.add_vertex({2.0, 1.0, 0.0}));
36 auto heh = mesh_.new_edge(vh[4], vh[5]);
37 auto heh_opp = mesh_.opposite_halfedge_handle(heh);
38 mesh_.set_halfedge_handle(vh[4], heh);
39 mesh_.set_halfedge_handle(vh[5], heh_opp);
41 InteriorEdge = Edge(0, 2);
42 BoundaryEdge = Edge(0, 1);
43 IsolatedEdge = Edge(4, 5);
47 EH Edge(
int _vh0_idx,
int _vh1_idx) {
50 HEH heh = mesh_.find_halfedge(vh0, vh1);
53 return mesh_.edge_handle(heh);
Handle for a vertex entity.
Definition: Handles.hh:121
Handle for a halfedge entity.
Definition: Handles.hh:128
Handle for a edge entity.
Definition: Handles.hh:135
Handle for a face entity.
Definition: Handles.hh:142
Definition: unittests_common.hh:30