Hi,
I’m trying to find the good approach to implement a remove doubles modifier.
Looking at the code, I’ve seen that this code already exists in BMO, via bmo_remove_doubles_exec, which calls:
- bmesh_find_doubles_common
- and another operator bmo_weld_verts_exec
So, what can be the good approach for this modifier?
- Reimplementing all (except kdtree part) in the modifier context?
- Reuse the operators “directly”? Is that good to do that in an non operator context?
- Split what have been done in the op context so that it can be reused for both operator and modifier?
- Other?
Thanks