mirror of https://github.com/CGAL/cgal
Fixed to run unattended (not reading from cin anymore)
This commit is contained in:
parent
feb35a7aee
commit
6f3a42918b
|
|
@ -100,9 +100,17 @@ kruskal(const Polyhedron& P)
|
||||||
|
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
||||||
Polyhedron P;
|
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);
|
kruskal(P);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -71,8 +71,15 @@ kruskal( const Polyhedron& P)
|
||||||
|
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
||||||
Polyhedron P;
|
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.
|
// associate indices to the vertices using the "id()" field of the vertex.
|
||||||
vertex_iterator vb, ve;
|
vertex_iterator vb, ve;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue