40 static bool replace(
MeshLib::Mesh &mesh,
int const old_value,
int const new_value,
bool replace_if_exists =
false);
43 int const old_value,
int const new_value,
bool replace_if_exists =
false);
56 std::vector<T> value_mapping;
57 const std::size_t n_property_values(property_vector.
size());
58 for (std::size_t i=0; i<n_property_values; ++i) {
60 T
const& value (property_vector[i]);
61 std::size_t
const size(value_mapping.size());
62 for (std::size_t j=0; j<size; ++j) {
63 if (value == value_mapping[j]) {
70 value_mapping.push_back(value);
74 std::sort(value_mapping.begin(), value_mapping.end());
Definition of mesh-related Enumerations.
Definition of the Mesh class.
A set of methods for manipulating mesh element values.
static bool replace(MeshLib::Mesh &mesh, int const old_value, int const new_value, bool replace_if_exists=false)
static std::size_t condense(MeshLib::Mesh &mesh)
static std::size_t setByElementType(MeshLib::Mesh &mesh, MeshElemType ele_type, int const new_value)
static std::vector< T > getSortedPropertyValues(MeshLib::PropertyVector< T > const &property_vector)
MeshElemType
Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum.