Doxygen Source Code Documentation
Main Page Alphabetical List Data Structures File List Data Fields Globals Search
SUMA_gts.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __SUMAGTS_H__
00018 #define __SUMAGTS_H__
00019 #ifdef HAVE_CONFIG_H
00020 #include "gts/config.h"
00021 #endif
00022 #include "gts.h"
00023 #include "gts-private.h"
00024
00025 #include "SUMA_suma.h"
00026
00027 #define GTS_OUT(fname,s){\
00028 FILE *m_fp = fopen(fname, "w"); \
00029 if (!m_fp) { SUMA_S_Err("Failed to write GTS surface"); } \
00030 else { gts_surface_write(s, m_fp); fclose(m_fp); m_fp = NULL; } \
00031 }
00032 #define GTS_VTK_OUT(fname,s){\
00033 FILE *m_fp = fopen(fname, "w"); \
00034 if (!m_fp) { SUMA_S_Err("Failed to write VTK surface"); } \
00035 else { gts_surface_write_vtk(s, m_fp); fclose(m_fp); m_fp = NULL; } \
00036 }
00037
00038 void gts_surface_suma (GtsSurface * s,
00039 float **NodeListp, int *N_Nodep, int *NodeDimp,
00040 int **FaceSetListp, int *N_FaceSetp, int *FaceSetDimp);
00041 #if 0
00042
00043 SUMA_SurfaceObject* GtsToSuma( GtsSurface *gs);
00044 void MakeNodeList_foreach_vertex ( GtsPoint* v, gpointer* data);
00045 void MakeFaceList_foreach_face ( GtsFace* f, gpointer* data);
00046 #endif
00047 GtsSurface* SumaToGts( SUMA_SurfaceObject *SO);
00048 void coarsen( GtsSurface* s, int stop);
00049 void refine( GtsSurface* s, int stop);
00050 SUMA_SurfaceObject *SUMA_Mesh_Resample (SUMA_SurfaceObject *SO, float edge_factor);
00051
00052 #endif