<br><div class="gmail_quote">On Sat, Feb 25, 2012 at 3:56 PM, Campbell Barton <span dir="ltr"><<a href="mailto:ideasman42@gmail.com">ideasman42@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for the reportm fixed r44428.<br></blockquote><div><br></div><div>thanks for the quick reply and fix</div><div> , face split works :-)</div><div><br></div><div><br></div><div>but i have another question:</div><div>
<br></div><div>"</div><div><div>import bpy</div><div>import bmesh</div><div><br></div><div>object = bpy.context.object</div><div>mesh = object.data</div><div>bm = bmesh.from_mesh(mesh)</div><div><br></div><div>for i,f in enumerate(bm.faces):</div>
<div>    print(i,f)</div><div><br></div><div>print('first face',bm.faces[0])</div></div><div>"</div><div><br></div><div>is it normal that at each running of the script</div><div>the order of the references to faces is different ?</div>
<div><br></div><div>and face at index 0 and face at index 4 have the same reference</div><div> , faces at index 1 and 5 too :</div><div><br></div><div><div>0 <BMFace object at 0xb44b7e8></div><div>1 <BMFace object at 0xb44b830></div>
<div>2 <BMFace object at 0xb44b338></div><div>3 <BMFace object at 0xb44b6b0></div><div>4 <BMFace object at 0xb44b7e8></div><div>5 <BMFace object at 0xb44b830></div><div>first face <BMFace object at 0xb44b0c8></div>
<div>0 <BMFace object at 0xb44b0c8></div><div>1 <BMFace object at 0xb44b7e8></div><div>2 <BMFace object at 0xb44b338></div><div>3 <BMFace object at 0xb44b3b0></div><div>4 <BMFace object at 0xb44b0c8></div>
<div>5 <BMFace object at 0xb44b7e8></div><div>first face <BMFace object at 0xb44b6b0></div></div><div><br></div><div>just wondering :-)</div><div><br></div><div>thanks for your work and time</div><div>inS</div>
<div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5"><br>
On Sun, Feb 26, 2012 at 12:42 AM, INTERLICHTSPIELHAUS<br>
<<a href="mailto:interlichtspielhaus@gmail.com">interlichtspielhaus@gmail.com</a>> wrote:<br>
> hi<br>
><br>
> playing around with the new bmesh api<br>
><br>
> i can't split a face of a newly created cube in edit mode<br>
> with the following code<br>
><br>
> "<br>
> import bpy<br>
> import bmesh<br>
><br>
> object = bpy.context.object<br>
> mesh = object.data<br>
> bm = bmesh.from_mesh(mesh)<br>
><br>
> face = bm.faces[0]<br>
> v_one = face.verts[0]<br>
> v_two = face.verts[2]<br>
> print(v_one,v_two)<br>
><br>
> bmesh.utils.face_split(face, v_one, v_two)<br>
> "<br>
><br>
> whatever combination of 2 verts i take<br>
> i always get one of two errors:<br>
><br>
> ValueError: face_split(...): one of the verts passed is not found in the<br>
> face<br>
> or<br>
> ValueError: face_split(...): couldn't split the face, internal error<br>
><br>
> thanks for any help<br>
> inS<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Bf-python mailing list<br>
> <a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
> <a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
- Campbell<br>
_______________________________________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
</font></span></blockquote></div><br>