is it possible in blender v2.70 or with a python function deselect neighbours faces, so that they are alone ?
I hope it's doable.
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.Sign up to join this community
Yes it is do-able.
Find all neighbouring faces
Remove them from the selection
Test script, run in edit mode. Have a face as the active selection.
import bpy import bmesh context = bpy.context ob = context.edit_object me = ob.data bm = bmesh.from_edit_mesh(me) selfaces = set(f for f in bm.faces if f.select) f = bm.select_history.active selfaces.remove(f) while True: # find all "neighbours" of f desel = set(f for v in f.verts for el in v.link_edges for f in el.link_faces) for f in selfaces.intersection(desel): f.select = False selfaces -= desel if not selfaces: break f = selfaces.pop() bmesh.update_edit_mesh(me)
Recommend checking out bmesh via the py console. With a mesh in edit mode
>>> import bmesh >>> bm = bmesh.from_edit_mesh(C.object.data) >>> bm <BMesh(0x7f3308fde308), totvert=100, totedge=261, totface=162, totloop=486>