scrgiorgio / Plasm.jl

MIT License
0 stars 0 forks source link

Call a new function GLUE before returning out = MAP(fun)(domain) #13

Open apaoluzzi opened 3 days ago

apaoluzzi commented 3 days ago

The problem with MAP may arise many times for both developers and users ...

  1. A general solution is to call a new function GLUE or IDENTIFY to remove double or multiple points by identification ...
  2. Use a dictionary with key the truncated coordinate vector of points, and as value the array of multiple vertex indices.
  3. Rename the second, third, ... instances with the first index and remove the corresponding multiple vectors from their storage structure.
  4. Finally, remove double copies of 1-cells and 2-cells, if any.

Apply this filter before emitting the MAP output ... Always !!!