MmgTools / mmg

open source software for bidimensional and tridimensional remeshing
http://www.mmgtools.org
Other
369 stars 118 forks source link

Feature/ls bijective map #188

Closed Algiane closed 1 year ago

Algiane commented 1 year ago

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).

Capture d’écran 2022-12-12 à 11 20 12

Limitations

As user provides a non bijective map and we can store only one mapping per reference: