https://github.com/adshhzy/VIPSS
Tip revision: 2717c4ad8edd0fc8552b437512b165a14185b617 authored by adshhzy on 27 March 2020, 01:18:20 UTC
Delete deprecated code in surfacer
Delete deprecated code in surfacer
Tip revision: 2717c4a
ImplicitedSurfacing.h
#ifndef IMPLICITEDSURFACING_H
#define IMPLICITEDSURFACING_H
#include "Polygonizer.h"
#include "../readers.h"
class Surfacer{
public:
R3Pt s_ptMin, s_ptMax;
Array<R3Pt> s_aptSurface;
Array<R3Vec> s_avecSurface;
Array<R3Pt_i> s_afaceSurface;
vector<double>all_v;
vector<uint>all_fv;
R3Pt st;
double dSize;
int iBound;
Surfacer(){}
void CalSurfacingPara(vector<double>&Vs, int nvoxels);
double Surfacing_Implicit(vector<double>&Vs, int n_voxels, bool ischeckall,
double (*function)(const R3Pt &in_pt));
void WriteSurface(string fname);
void WriteSurface(vector<double> &v, vector<uint>&fv);
void WriteSurface(vector<double> **v, vector<uint>**fv);
void ClearBuffer();
void ClearSingleComponentBuffer();
private:
void GetCurSurface(vector<double> &v, vector<uint>&fv);
void InsertToCurSurface(vector<double>&v,vector<uint>&fv);
};
#endif // IMPLICITEDSURFACING_H
