41 using namespace Mesquite;
 
   79   int m=free_iter.
value();
 
size_t value()
Returns an index corresponding to a free vertex. 
 
Randomize()
Constructor defaulting mPercent to .05. 
 
virtual void set_patch_type(PatchData::PatchType patch_type, MsqError &err, int param1=0, int param2=0)
Sets the Patch Type. 
 
virtual void terminate_mesh_iteration(PatchData &pd, MsqError &err)
 
Used to hold the error state and return it to the application. 
 
void set_name(msq_std::string name)
provides a name to the QualityImprover (use it in constructor). 
 
void reset()
Resets the iterator. 
 
bool next()
Increments the iterator. returns false if there is no more free vertex. 
 
void snap_vertex_to_domain(size_t vertex_index, MsqError &err)
Adjust the position of the specified vertex so that it lies on its constraining domain. 
 
virtual void initialize_mesh_iteration(PatchData &pd, MsqError &err)
 
size_t num_vertices() const 
number of vertices in the patch. 
 
const MsqVertex * get_vertex_array(MsqError &err) const 
Returns a pointer to the start of the vertex array. 
 
virtual void optimize_vertex_positions(PatchData &pd, MsqError &err)
 
iterates over indexes of free vetices in a PatchData. 
 
MsqVertex is the Mesquite object that stores information about the vertices in the mesh...
 
virtual void initialize(PatchData &pd, MsqError &err)
 
#define MSQ_ERRRTN(err)
If passed error is true, return from a void function. 
 
void randomize_vertex(PatchData &pd, size_t num_vtx, MsqVertex &free_vtx, MsqError &err)
Perturbs the free vertex randomly.