kd_dump.cpp File Reference

#include "kd_tree.h"
#include "bd_tree.h"
#include <cstring>
#include <cstdlib>

Go to the source code of this file.

Enumerations

enum  ANNtreeType { KD_TREE, BD_TREE }

Functions

static ANNkd_ptr annReadDump (istream &in, ANNtreeType tree_type, ANNpointArray &the_pts, ANNidxArray &the_pidx, int &the_dim, int &the_n_pts, int &the_bkt_size, ANNpoint &the_bnd_box_lo, ANNpoint &the_bnd_box_hi)
static ANNkd_ptr annReadTree (istream &in, ANNtreeType tree_type, ANNidxArray the_pidx, int &next_idx)

Variables

const double EPSILON = 1E-5
const int STRING_LEN = 500

Enumeration Type Documentation

Enumerator:
KD_TREE 
BD_TREE 

Definition at line 48 of file kd_dump.cpp.


Function Documentation

static ANNkd_ptr annReadDump ( istream &  in,
ANNtreeType  tree_type,
ANNpointArray the_pts,
ANNidxArray the_pidx,
int &  the_dim,
int &  the_n_pts,
int &  the_bkt_size,
ANNpoint the_bnd_box_lo,
ANNpoint the_bnd_box_hi 
) [static]
static ANNkd_ptr annReadTree ( istream &  in,
ANNtreeType  tree_type,
ANNidxArray  the_pidx,
int &  next_idx 
) [static]

Definition at line 370 of file kd_dump.cpp.

References ANNabort, annError(), BD_TREE, KD_TRIVIAL, n_pts, and STRING_LEN.

Referenced by annReadDump().


Variable Documentation

const double EPSILON = 1E-5

Definition at line 46 of file kd_dump.cpp.

const int STRING_LEN = 500

Definition at line 45 of file kd_dump.cpp.


Generated on Wed Nov 23 19:01:17 2011 for FreeCAD by  doxygen 1.6.1