MmProcess
The GeMA Mesh Mapping Process Plugin
Mesh mapping options

The mappingOptions table, optionally supplied as a parameter to the mm.meshMapping() function, allows to customize the mapping process. The supported flags are:

Attribute Description Type Required Def. Value
noDataMode When set to true, activate the noData mode. Boolean No false
noDataValue If noDataMode is true, defines the noData value. Double No 0.0
noDataEps If noDataMode is true, define the tolerency value on the source mesh boundary. Double No 0.0
state The state number we want to map (cf. GeMA state numbering convention). If setting this value to -1 all states will be mapped Integer No -1
interpType The interpolator type used to compute the data inside a cell. See(1). String No "default"
interpParam The parameters associated to the interpolator See(1). String or Number No Depends on interpolator
activeOnly When set to true, maps data only on the active cells of the destination mesh. No effect if the mapping is done on destination nodes. Boolean No true
info When set to true, prints informations about the mesh mapping. Boolean No false

When filling this table, keep in mind that only options different from the default are needed. When an option is not present in the table its default value will be used.

(1) Available interpolation types and supported parameters for each one (see the Interpolation methods page for more details):

  • "default": The default interpolation method, equal to "shape" for element meshes and "idw" with parameter 2 for cell meshes;
  • "nn": Nearest neighbor interpolation. If an integer parameter 'k' is given, the 'k' closest points will be averaged to return the interpolated value. The default value for 'k' is 1.
  • "idw": Inverse distance weighted interpolation. The interpolated value is the average of the known values weighted by inverse distance from the interpolation point raised to a power 'p' provided as a real number parameter. If 'p' is absent, a power of 2 is used.
  • "mls": Moving least squares method. No supported parameters.
  • "shape": Interpolation using the element's shape function. No supported parameters.
  • "lshape": Interpolation using the element's equivalent linear shape function. Usefull when dealing with super-parameteric scenarios. No supported parameters.