00001 #ifndef MNI_OBJFILE_H // -*- C++ -*-
00002 #define MNI_OBJFILE_H
00003
00004 #include "poly.h"
00005
00006
00007
00008 struct object_struct;
00009
00010
00011 namespace MNI {
00012
00013
00022 class Object_file
00023 {
00024 public:
00025
00026 Object_file( char* filename );
00027 ~Object_file();
00028
00029
00030
00031
00033 bool is_valid() const;
00034 int size_of_objects() const;
00035 object_struct* object( int index ) const;
00036
00037 bool is_polygons( int index ) const;
00038 bool is_quadmesh( int index ) const;
00039
00040
00042 void insert( int index, bool split_quad, Polyhedron& poly );
00043
00044 private:
00045 int objects_size;
00046 object_struct** objects_list;
00047 };
00048
00049
00050 }
00051
00052 #endif