00001
00002
00003 #include "ObjFile.h"
00004 #include <CGAL/Polyhedron_incremental_builder_3.h>
00005
00006
00007
00008 #undef ABS
00009 #undef ALLOC
00010
00011 extern "C" {
00012 # include <bicpl.h>
00013 }
00014
00015
00016 namespace MNI {
00017 namespace ObjFile_inserter {
00018
00019
00022 class Polygons : public CGAL::Modifier_base<HDS>
00023 {
00024 public:
00025 const polygons_struct& poly;
00026
00027 Polygons( const polygons_struct& p ) : poly(p) {};
00028 void operator() ( HDS& hds );
00029 };
00030
00031
00034 class Quadmesh : public CGAL::Modifier_base<HDS>
00035 {
00036 public:
00037 const quadmesh_struct& qmesh;
00038 bool split_patches;
00039
00040 Quadmesh( const quadmesh_struct& q, bool split )
00041 : qmesh(q), split_patches(split) {};
00042 void operator() ( HDS& hds );
00043 };
00044
00045
00046 }
00047 }
00048