Warning instead of error in case of non bijective multi-material input map
Non-bijective multimaterial maps can be useful to merge external (resp. internal) parts of multiple materials after level-set discretization while keeping internal (resp. external) domain splitted (see attached example where left mesh shows the input material, middle mesh, the input level-set function and right mesh the output mesh after level-set discretization and non bijective mapping for the external domain).
Limitations
As user provides a non bijective map and we can store only one mapping per reference:
we cannot ensure that the overwritting of the mapping will give the result expected by the user
temporary interfaces between domains that are mapped to the same references may lead to erroneous detection of non-manifold situations
This feature has to be use at your own risk and avoided if possible.
Warning instead of error in case of non bijective multi-material input map
Non-bijective multimaterial maps can be useful to merge external (resp. internal) parts of multiple materials after level-set discretization while keeping internal (resp. external) domain splitted (see attached example where left mesh shows the input material, middle mesh, the input level-set function and right mesh the output mesh after level-set discretization and non bijective mapping for the external domain).
Limitations
As user provides a non bijective map and we can store only one mapping per reference:
temporary interfaces between domains that are mapped to the same references may lead to erroneous detection of non-manifold situations
This feature has to be use at your own risk and avoided if possible.