Subject: CGAL users discussion list
List archive
- From: <>
- To:
- Subject: [cgal-discuss] off_file_input for triangulation_2
- Date: Thu, 30 Oct 2008 10:44:43 +0100 (CET)
hello,
I try to use this undocumented function from
triangulation_data_estructure_2.h.
I need to read an off file and load in a triangulation (any kind of
triangulation, it's the same)
I use as follows:
struct K : CGAL::Exact_predicates_inexact_constructions_kernel {};
typedef CGAL::Triangulation_vertex_base_2<K> Vbb;
typedef CGAL::Triangulation_hierarchy_vertex_base_2<Vbb> Vb;
typedef CGAL::Triangulation_face_base_2<K> Fb;
typedef CGAL::Triangulation_data_structure_2<Vb,Fb> Tds;
typedef CGAL::Delaunay_triangulation_2<K,Tds> Dt;
typedef CGAL::Triangulation_hierarchy_2<Dt> Triangulation;
int main( )
{
Triangulation t;
std::ifstream iFileT("output",std::ios::in);
Tds t2;
t2.off_file_input(iFileT,1);
return 0;
}
I instantiate Tds, for use off_file_input function. I read in the .h
definition
file, and I find that returns "void", so...how can I load in a triangulation?
Can anyone tell me how could I use this function?
I use VS2005, and I receives all the time the same error:
error C2039: 'handle' : it isn't member of 'CGAL::Tfb<Gt,Fb>'
Have I to instantiate any handle to work fine?
Thanks a lot
- [cgal-discuss] off_file_input for triangulation_2, antonio.hurtado, 10/30/2008
Archive powered by MHonArc 2.6.16.