#ifndef IMPLICITEDSURFACING_H #define IMPLICITEDSURFACING_H #include "Polygonizer.h" #include "../readers.h" class Surfacer{ public: R3Pt s_ptMin, s_ptMax; Array s_aptSurface; Array s_avecSurface; Array s_afaceSurface; vectorall_v; vectorall_fv; R3Pt st; double dSize; int iBound; Surfacer(){} void CalSurfacingPara(vector&Vs, int nvoxels); double Surfacing_Implicit(vector&Vs, int n_voxels, bool ischeckall, double (*function)(const R3Pt &in_pt)); void WriteSurface(string fname); void WriteSurface(vector &v, vector&fv); void WriteSurface(vector **v, vector**fv); void ClearBuffer(); void ClearSingleComponentBuffer(); private: void GetCurSurface(vector &v, vector&fv); void InsertToCurSurface(vector&v,vector&fv); }; #endif // IMPLICITEDSURFACING_H