Operating system: Windows 10
Graphics card: GTX1060
Short description of error
Wrong vertices are added to a vertex group.
Exact steps for others to reproduce the error
I am writing a script to create contour lines on an object. Each line is created, its vertices will be added into a new vertex group.
I use bmesh.ops.bisect_plane to create contour lines. I get mutilple sets of vertices from geom_cut.
I create the new vertex groups for each set of vertices.
However, the newer vertex groups somehow contain the vertices from previous vertex groups.
After a long time of testing, I believe the problem is on BMesh.
The attachment is the file showing my trials. The instruction is in the scripts.