Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

MNI::Object_file Class Reference

MNI/BIC .obj file of objects. More...

#include <ObjFile.h>

Collaboration diagram for MNI::Object_file:

Collaboration graph
[legend]
List of all members.

Public Methods

 Object_file (char *filename)
 ~Object_file ()
bool is_valid () const
 True if file correctly read.

int size_of_objects () const
object_struct * object (int index) const
bool is_polygons (int index) const
bool is_quadmesh (int index) const
void insert (int index, bool split_quad, Polyhedron &poly)
 Insert object into halfedge data structure. More...

 Object_file (char *filename)
 ~Object_file ()
bool is_valid () const
 True if file correctly read.

int size_of_objects () const
object_struct * object (int index) const
bool is_polygons (int index) const
bool is_quadmesh (int index) const
void insert (int index, bool split_quad, Polyhedron &poly)
 Insert object into halfedge data structure.


Private Attributes

int objects_size
object_struct ** objects_list
object_struct ** objects_list

Detailed Description

A BIC .obj file contains one or more objects. The objects are indexed from 0 to size_of_objects() - 1.

Objects may be a mesh of polygons, lines, and other types. Only polygons and quadmesh types are currently supported.

Definition at line 22 of file bicobj-intersection-0.0/ObjFile.h.


Constructor & Destructor Documentation

MNI::Object_file::Object_file (  char *    filename ) 
 

This constructor loads the entire file into memory.

Postcondition:
is_valid() returns false if file was not read correctly

Definition at line 12 of file bicobj-intersection-0.0/ObjFile.cc.


Member Function Documentation

void MNI::Object_file::insert (  int    index,
bool    split_quad,
Polyhedron &    poly
) 
 

Parameters:
index  object to insert
split_quad  if true, split quadmesh patches into two triangular facets
hds  the halfedge data structure in which to insert the object

Definition at line 86 of file bicobj-intersection-0.0/ObjFile.cc.

bool MNI::Object_file::is_polygons (  int    index )  const
 

Precondition:
0 <= index < size_of_objects()

Definition at line 60 of file bicobj-intersection-0.0/ObjFile.cc.

Referenced by insert().

bool MNI::Object_file::is_quadmesh (  int    index )  const
 

Precondition:
0 <= index < size_of_objects()

Definition at line 71 of file bicobj-intersection-0.0/ObjFile.cc.

Referenced by insert().

object_struct * MNI::Object_file::object (  int    index )  const
 

Precondition:
0 <= index < size_of_objects()

Definition at line 49 of file bicobj-intersection-0.0/ObjFile.cc.

Referenced by insert().


The documentation for this class was generated from the following files:
Generated on Fri Oct 26 23:38:15 2001 for bicobj-intersection by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001