[Bf-python] bmesh split face

Campbell Barton ideasman42 at gmail.com
Sat Feb 25 15:56:50 CET 2012


Thanks for the reportm fixed r44428.

On Sun, Feb 26, 2012 at 12:42 AM, INTERLICHTSPIELHAUS
<interlichtspielhaus at gmail.com> wrote:
> hi
>
> playing around with the new bmesh api
>
> i can't split a face of a newly created cube in edit mode
> with the following code
>
> "
> import bpy
> import bmesh
>
> object = bpy.context.object
> mesh = object.data
> bm = bmesh.from_mesh(mesh)
>
> face = bm.faces[0]
> v_one = face.verts[0]
> v_two = face.verts[2]
> print(v_one,v_two)
>
> bmesh.utils.face_split(face, v_one, v_two)
> "
>
> whatever combination of 2 verts i take
> i always get one of two errors:
>
> ValueError: face_split(...): one of the verts passed is not found in the
> face
> or
> ValueError: face_split(...): couldn't split the face, internal error
>
> thanks for any help
> inS
>
>
>
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python
>



-- 
- Campbell



More information about the Bf-python mailing list