36 #ifndef UTILITIES_PREPROCESSING_FIELDCONVERT_PROCESSISOCONTOUR
37 #define UTILITIES_PREPROCESSING_FIELDCONVERT_PROCESSISOCONTOUR
39 #include "../Module.h"
51 void globalcondense(vector<boost::shared_ptr<Iso> > &iso,
bool verbose);
52 void separate_regions(vector<boost::shared_ptr<Iso> > &iso,
int minsize,
bool verbose);
80 m_x[loc] = intfields[0][j];
81 m_y[loc] = intfields[1][j];
82 m_z[loc] = intfields[2][j];
84 for(
int i = 0; i < intfields.num_elements()-3; ++i)
86 m_fields[i][loc] = intfields[i+3][j];
142 if(size >
m_x.size())
144 m_x.resize(size+100);
145 m_y.resize(size+100);
146 m_z.resize(size+100);;
147 for(
int i = 0; i <
m_fields.size(); ++i)
165 for(
int i = 0; i <
m_fields.size(); ++i)
241 virtual void Process(po::variables_map &vm);
void set_vid(int i, int j)
pair< ModuleType, string > ModuleKey
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
void set_x(int loc, NekDouble val)
static ModuleKey className
virtual ~ProcessIsoContour()
NekDouble get_fields(const int i, const int j)
void resize_vid(int nconn)
void separate_regions(vector< boost::shared_ptr< Iso > > &iso, int minsize, bool verbose)
void set_y(int loc, NekDouble val)
vector< NekDouble > m_fields
static boost::shared_ptr< Module > create(FieldSharedPtr f)
Creates an instance of this class.
void smooth(int n_iter, NekDouble lambda, NekDouble mu)
boost::shared_ptr< Iso > IsoSharedPtr
void set_fields(const int loc, const Array< OneD, Array< OneD, NekDouble > > &intfields, const int j)
void SetupIsoFromFieldPts(vector< IsoSharedPtr > &isovec)
friend bool operator!=(const IsoVertex &x, const IsoVertex &y)
boost::shared_ptr< Field > FieldSharedPtr
vector< vector< NekDouble > > m_fields
vector< IsoSharedPtr > ExtractContour(const int fieldid, const NekDouble val)
void set_z(int loc, NekDouble val)
friend bool operator==(const IsoVertex &x, const IsoVertex &y)
void globalcondense(vector< boost::shared_ptr< Iso > > &iso, bool verbose)
void ResetFieldPts(vector< IsoSharedPtr > &iso)
This processing module interpolates one field to another.
void resize_fields(int size)
This processing module extracts an isocontour.