00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 #ifndef _UCB_UTILS_H_
00032 #define _UCB_UTILS_H_
00033 
00034 #include <UCBsplineSurface.h>
00035 #include <vector>
00036 
00037 
00038 #include <PointAccessUtils.h> 
00039 
00040 
00047 namespace UCBspl {
00048   
00049   
00050   
00051   void printVRMLgrid(const char filename[], const UCBspl::SplineSurface& surf, int noU, int noV, double scale = 1.0);
00052   void printVTKgrid(const char filename[], const UCBspl::SplineSurface& surf, int noU, int noV, double scale = 1.0);
00053   void printVTKtriangleStrips(const char filename[], const UCBspl::SplineSurface& surf, int noU, int noV, double scale = 1.0);
00054   void printGNUgrid (const char filename[], const UCBspl::SplineSurface& surf, int noU, int noV);  
00055   void printIRAPgrid(const char filename[], const UCBspl::SplineSurface& surf, int noU, int noV);
00056   void printGLgrid(const char filename[], const UCBspl::SplineSurface& surf, int noU, int noV);
00057   void printGLgridBin(const char filename[], const UCBspl::SplineSurface& surf, int noU, int noV,
00058                       const std::vector<double>& X, const std::vector<double>& Y, const std::vector<double>& Z, 
00059                       double scale = 1.0);
00060   void saveSplineSurface(const char filename[], const UCBspl::SplineSurface& surf);
00061   void readSplineSurface(const char filename[], UCBspl::SplineSurface& surf);
00062   void saveSplineSurfaceBin(const char filename[], const UCBspl::SplineSurface& surf);
00063   void readSplineSurfaceBin(const char filename[], UCBspl::SplineSurface& surf);
00064   
00065 }; 
00066 
00067 #endif