}
// Read header line
- in.stream() >> nodecount >> dim >> junk1 >> junk2;
+ in >> nodecount >> dim >> junk1 >> junk2;
cout << " Expecting " << nodecount << " nodes\n";
// start with an empty list :-)
node_list.erase( node_list.begin(), node_list.end() );
- in.eat_comments();
+ in >> skipcomment;
while ( ! in.eof() ) {
- in.stream() >> junk1 >> node >> junk2;
- in.eat_comments();
+ in >> junk1 >> node >> junk2;
+ in >> skipcomment;
node_list.push_back(node);
}
}
// $Log$
+// Revision 1.7 1998/11/06 21:33:55 curt
+// Updates to go along with changes in fgstream.
+//
// Revision 1.6 1998/10/20 15:49:22 curt
// Converted to Point3D class.
//
nodes_cart.push_back(node1);
tri_list.push_back(tri);
- node_in.stream() >> nodecount >> dim >> junk1 >> junk2;
+ node_in >> nodecount >> dim >> junk1 >> junk2;
cout << " Expecting " << nodecount << " nodes\n";
for ( i = 1; i <= nodecount; i++ ) {
- node_in.stream() >> junk1 >> node1 >> junk2;
+ node_in >> junk1 >> node1 >> junk2;
nodes_orig.push_back(node1);
// printf("%d %.2f %.2f %.2f\n", junk1, node1.x, node1.y, node1.z);
exit(-1);
}
- ele_in.stream() >> tricount >> junk1 >> junk2;
+ ele_in >> tricount >> junk1 >> junk2;
cout << " Expecting " << tricount << " elements\n";
for ( i = 1; i <= tricount; i++ ) {
// fscanf(ele_file, "%d %d %d %d\n", &junk1,
// &(tri.n1), &(tri.n2), &(tri.n3));
- ele_in.stream() >> junk1 >> tri.n1 >> tri.n2 >> tri.n3;
+ ele_in >> junk1 >> tri.n1 >> tri.n2 >> tri.n3;
// printf("%d %d %d %d\n", junk1, tri.n1, tri.n2, tri.n3);
tri_list.push_back(tri);
}
// $Log$
+// Revision 1.7 1998/11/06 21:33:57 curt
+// Updates to go along with changes in fgstream.
+//
// Revision 1.6 1998/10/21 14:56:20 curt
// Fixed a units conversion bug.
//