Bug in my code or in Blender? 😕

Hi to all,
I’m trying to understand if the problem that I have in my project is a bug inside my code or it’s a blender bug! I have the same problem using both the 2.6.3 version, that the 2.6.3a!

I have created this object using bmesh:


When I try to modify the coordinates of the 2 external vertices of the two lateral faces on the sides, I have this artefact, but only in one of two sides!
This seems very strange!

1° SIDE IT’S CORRECT:


2° SIDE - ARTIFACT:


This is as looks in OBJECT MODE instead!


If I select both faces, you can see that they have 5 edges and this is correct, but part of the face has no surface!


If I made a little manually translate of the vertex in EDIT MODE, with the mouse, not by code using bmesh in python, the surface is correctly filled!


Any ideas?

Even applying the modifier Subdivision Surface, I don’t see any kind of problem!


How can we know if it is a bug in your code, if you don’t post any code?

From the first and the second pic, I just change the two vertices coordinates:

bm.verts[leftSideVertexIndex].co = vecTranslation

bm.verts[rightSideVertexIndex].co = vecTranslation

If in the object in the first pic, I manually change in EDIT MODE the position of the vertices, I have no problem!

I have had this bug without using the python WorkFlow. where a “phantom” face exists.