Subject: CGAL users discussion list
List archive
- From: Philipp Moeller <>
- To:
- Subject: Re: [cgal-discuss] Reading polyhedrons from .off files
- Date: Thu, 15 Mar 2012 15:24:50 +0100
- Organization: GeometryFactory
Hi Oleg,
can you please post the _complete_ code that causes the error
message. This seems to be related to a missing include.
Cheers,
Philipp Moeller
GeometryFactory
Oleg
<>
writes:
> 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.
- [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.