Fixed to run unattended (not reading from cin anymore)

This commit is contained in:
Fernando Cacciola 2007-02-05 15:45:48 +00:00
parent feb35a7aee
commit 6f3a42918b
2 changed files with 18 additions and 3 deletions

View File

@ -100,9 +100,17 @@ kruskal(const Polyhedron& P)
int main() {
Polyhedron P;
std::cin >> P;
Point a(1,0,0);
Point b(0,1,0);
Point c(0,0,1);
Point d(0,0,0);
P.make_tetrahedron(a,b,c,d);
kruskal(P);
return 0;
}

View File

@ -71,8 +71,15 @@ kruskal( const Polyhedron& P)
int main() {
Polyhedron P;
std::cin >> P;
Point a(1,0,0);
Point b(0,1,0);
Point c(0,0,1);
Point d(0,0,0);
P.make_tetrahedron(a,b,c,d);
// associate indices to the vertices using the "id()" field of the vertex.
vertex_iterator vb, ve;