Subject: CGAL users discussion list
List archive
- From: Andreas Fabri <>
- To:
- Subject: Re: [cgal-discuss] Reading polyhedrons from .off files
- Date: Thu, 15 Mar 2012 15:23:23 +0100
- Organization: GeometryFactory
Do you #include <fstream> ?
andreas
On 15/03/2012 15:21, Oleg wrote:
Hello! Newbie question. Can someone give me a hint why I can't read
polyhedrons from .off files in the following manner:
#include<CGAL/IO/Polyhedron_iostream.h>
...
int main() {
// Loading input polyhedrons
Polyhedron P1;
std::ifstream in("in1.off");
in>> P1;
Polyhedron P2;
std::ifstream in("in2.off");
in>> P2;
...
}
When trying to compile it I keep getting error message "error C2079: "in"
uses indefinite class "std::basic_ifstream<_Elem,_Traits>". A similar code
seems to be working in the mesh_polyhedral_domain.cpp example, and I can't
figure out what I'm doing wrong. Thanks for any help!
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Reading-polyhedrons-from-off-files-tp4475138p4475138.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
--
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project
phone: +33.492.954.912 skype: andreas.fabri
- [cgal-discuss] Reading polyhedrons from .off files, Oleg, 03/15/2012
- Re: [cgal-discuss] Reading polyhedrons from .off files, Andreas Fabri, 03/15/2012
- [cgal-discuss] Re: Reading polyhedrons from .off files, Oleg, 03/15/2012
- Re: [cgal-discuss] Reading polyhedrons from .off files, Philipp Moeller, 03/15/2012
- [cgal-discuss] Re: Reading polyhedrons from .off files, Oleg, 03/15/2012
- Re: [cgal-discuss] Reading polyhedrons from .off files, Andreas Fabri, 03/15/2012
Archive powered by MHonArc 2.6.16.