Hi. I am having a hard time figuring out which is the best way to do this… I know its simple but where the mesh system ends and Bmesh starts still elude me.
I would like to build a copy of the selected mesh with only the edges, and none of them connected.
So: For each edge in mesh -> add new edge to new mesh -> copy mesh back to original object.
My xcript is adjusted from an online example:
print (" – new --")
Get the active mesh
me = bpy.context.object.data
Get a BMesh representation
bm = bmesh.new() # create an empty BMesh
nbm = bmesh.new()
bm.from_mesh(me) # fill it in from a Mesh
Modify the BMesh, can do anything here…
for e in bm.edges:
#add the edge e to the new mesh nbm
#This I dont know how to…
Finish up, write the new bmesh back to the mesh