Automatic application of mesh displacement for certain name of vector field

So it comes indeed from the reader, there is a logic like this:

  // find the first field that begins with "dis" and has as many components as
  // the degree.
  for (const auto& fname : names)
  {
    if (vtksys::SystemTools::UpperCase(fname.substr(0, 3)) == "DIS" &&
      nodeblock->get_fieldref(fname).raw_storage()->component_count() == degree)
    {
      return fname;
    }    
  }

Naming the field dis.... indeed trigger this behavior.

You can however disable this behavior using the “ApplyDisplacement” property which is an advanced option of the reader.

a

hth,

1 Like