Overture  Version 25
Macros | Functions
equi.C File Reference
#include "EquiDistribute.h"
#include "arrayGetIndex.h"
#include "display.h"
#include "DataPointMapping.h"
#include "GenericGraphicsInterface.h"
#include "CompositeSurface.h"
Include dependency graph for equi.C:

Macros

#define AREA(i1, i2, i3)   (wa(i1,i2,i3)*areaWeight/(eps+max(wa(i1,i2,i3))))
 
#define CURVATURE(i1, i2, i3)   (w2(i1,i2,i3)*(curvatureWeight/(eps+max(w2(i1,i2,i3)))))
 

Functions

int equidistribute (const RealArray &w, RealArray &r)
 
int periodicUpdate (realArray &x, const IntegerArray &indexRange, const IntegerArray &bc, const int &domainDimension, const int &rangeDimension)
 
int equiGridSmoother (const int &domainDimension, const int &rangeDimension, IntegerArray &indexRange, IntegerArray &bc, const int &axis, const realArray &x, realArray &r, const real arcLengthWeight, const real curvatureWeight, const real areaWeight, int numberOfSmooths)
 
int equiGridSmoother (Mapping &map, DataPointMapping &dpm, GenericGraphicsInterface &gi, GraphicsParameters &parameters, IntegerArray &bc, real &arcLengthWeight, real &curvatureWeight, real &areaWeight)
 

Macro Definition Documentation

#define AREA (   i1,
  i2,
  i3 
)    (wa(i1,i2,i3)*areaWeight/(eps+max(wa(i1,i2,i3))))

Referenced by equiGridSmoother().

#define CURVATURE (   i1,
  i2,
  i3 
)    (w2(i1,i2,i3)*(curvatureWeight/(eps+max(w2(i1,i2,i3)))))

Referenced by equiGridSmoother().

Function Documentation

int equidistribute ( const RealArray w,
RealArray r 
)

References assert, delta, fabs(), r, R, and REAL_EPSILON.

int equiGridSmoother ( const int &  domainDimension,
const int &  rangeDimension,
IntegerArray indexRange,
IntegerArray bc,
const int &  axis,
const realArray x,
realArray r,
const real  arcLengthWeight,
const real  curvatureWeight,
const real  areaWeight,
int  numberOfSmooths 
)
int equiGridSmoother ( Mapping map,
DataPointMapping dpm,
GenericGraphicsInterface gi,
GraphicsParameters parameters,
IntegerArray bc,
real arcLengthWeight,
real curvatureWeight,
real areaWeight 
)
int periodicUpdate ( realArray x,
const IntegerArray indexRange,
const IntegerArray bc,
const int &  domainDimension,
const int &  rangeDimension 
)