82 std::cout <<
"Input mesh:\n";
86 AIFHalfEdge h1(v0, v1, f0);
87 AIFHalfEdge h2(v1, v3, f0);
88 AIFHalfEdge h3(v1, v3, f1);
92 AIFHalfEdge hbad(v0, v2, f0);
95 catch(
const std::runtime_error &e)
98 std::string(
"In AIFHalfEdge::AIFHalfEdge(s, t, f): invalid "
99 "halfedge, no edge between the two vertices."));
104 AIFHalfEdge hbad(v0, v1, f1);
107 catch(
const std::runtime_error &e)
110 std::string(
"In AIFHalfEdge::AIFHalfEdge(s, t, f): invalid "
111 "halfedge, not incident to the face."));
116 AIFHalfEdge hbad(v3, v2, f0);
119 catch(
const std::runtime_error &e)
122 std::string(
"In AIFHalfEdge::AIFHalfEdge(s, t, f): invalid "
123 "halfedge, not incident to the face."));
129 assert(n.get_source() == v1 && n.get_target() == v3);
133 assert(n.get_source() == v3 && n.get_target() == v0);
137 assert(n.get_source() == v3 && n.get_target() == v2);
139 std::cout <<
"Test passed.\n";