On Sat, 23 Jul 2005 18:30:29 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote:
[...]
>Did it work on a quad face? What about putting in a debug print before places
>you use
>f.normal, e.g.
>assert hasattr(f, 'normal'), 'This "f"\n\n%r\n\ndid not have a
> normal attribute!!' % f
>
>If f.re
On Thu, 21 Jul 2005 00:45:12 +0200, red <[EMAIL PROTECTED]> wrote:
>Hi,
>
>I'm writing a script for Blender and need to build a face array. My
>engine needs that all faces must be triangles, so I convert quads to
>triangles by dividing them into two triangles. Here is the function:
>
>def build_f
On Thursday 21 July 2005 08:17 pm, Terry Hancock wrote:
> But is "faces" a list,
> dictionary, or tuple (or something more obscure)?
Lest it be unclear why this matters:
>>> da = {'a':1, 'b':2, 'c':3}
>>> for d in da:
... print d
...
a
c
b
>>> la = [1,2,3]
>>> for d in la:
... print d
..
On Thursday 21 July 2005 03:47 am, red wrote:
> Terry Hancock wrote:
> > I'm not sure either, yet, but can you indicate which line in your
> > listing is 102 in the source file? That might be helpful.
>
> 101: ## f1.normal = copy.deepcopy(f.normal)
> 102: f1.normal = NMesh.Vert(f.normal[0]
Terry Hancock wrote:
> I'm not sure either, yet, but can you indicate which line in your
> listing is 102 in the source file? That might be helpful.
101: ## f1.normal = copy.deepcopy(f.normal)
102:f1.normal = NMesh.Vert(f.normal[0], f.normal[1], f.normal[2])
I've tried with deepcopy, but the
On Wednesday 20 July 2005 05:45 pm, red wrote:
> Everything seems be ok, but i'm getting:
>
> Traceback (most recent call last):
> File "", line 169, in write
> File "", line 102, in build_face_table
> AttributeError: normal
>
> I was wondering why?
I'm not sure either, yet, but can you
Hi,
I'm writing a script for Blender and need to build a face array. My
engine needs that all faces must be triangles, so I convert quads to
triangles by dividing them into two triangles. Here is the function:
def build_face_table(mesh):
face_table = {}
i = 0
for f in me