Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: [SOLVED] What am I doing wrong?

  1. #1
    Join Date
    Feb 2007
    Beans
    281

    Question [SOLVED] What am I doing wrong?

    Python: For a while now I've had some problems with my program that I cannot for the life of me figure out I've figured most of it out, but its all boiled down to this one clip of code:
    Code:
    	item.faces=3
    	item.face.append(face3d())
    	item.face[0].vertex.append(3)
    	item.face[0].vertex.append(2)
    	item.face[0].vertex.append(1)
    	item.face[0].vertex.append(0)
    	item.face[0].vertecies=4
    	
    	item.face.append(face3d())
    	item.face[1].vertex.append(0)
    	item.face[1].vertex.append(1)
    	item.face[1].vertex.append(5)
    	item.face[1].vertex.append(4)
    	item.face[1].vertecies=4
    	
    	item.face.append(face3d())
    	item.face[2].vertex.append(5)
    	item.face[2].vertex.append(1)
    	item.face[2].vertex.append(6)
    	item.face[2].vertex.append(7)
    	item.face[2].vertecies=4
    My tests (print) indicates that all of these faces have the same 4 vertex values as each other, and as far as what I'd like them to do, their not supposed to. I recently modified the code to be like that and in its present state all the faces have the same vertecies as the first face... before that they all had the same vertecies as the last face... I find it very confusing.

  2. #2
    Join Date
    Jun 2007
    Location
    Maryland, US
    Beans
    6,288
    Distro
    Kubuntu

    Re: What am I doing wrong?

    Quote Originally Posted by Zeotronic View Post
    ...
    My tests (print) indicates that all of these faces have the same 4 vertex values as each other, and as far as what I'd like them to do, their not supposed to. I recently modified the code to be like that and in its present state all the faces have the same vertecies as the first face... before that they all had the same vertecies as the last face... I find it very confusing.

  3. #3
    Join Date
    Feb 2007
    Beans
    281

    Re: What am I doing wrong?

    Your emoticon doesn't particularly help me in helping you help me.

    Update:
    the faces have the same vertecies as the first face... before that they all had the same vertecies as the last face...
    Now I see whats going on (sorta)... but I'm still not sure how to fix it.
    Last edited by Zeotronic; August 28th, 2008 at 04:05 PM.

  4. #4
    WW is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Oct 2004
    Beans
    1,532

    Re: What am I doing wrong?

    It might help if we could see the code for face3d().

  5. #5
    Join Date
    Jun 2006
    Location
    CT, USA
    Beans
    5,267
    Distro
    Ubuntu 6.10 Edgy

    Re: What am I doing wrong?

    What you are doing wrong?

    For starters, title of your post suggest what you did not thought too long before posting.

    Read "how to ask questions" (also in my sig) and learn ... how to ask questions so it will be better use of our time, and also yours.

  6. #6
    Join Date
    Feb 2007
    Beans
    281

    Re: [SOLVED] What am I doing wrong?

    For starters, title of your post suggest what you did not thought too long before posting.
    Yea... ok, I have to admit I could have probably been more specific, despite the fact that I was completely clueless what I did wrong (not sarcasm). However, you might want to take note that you probably ment "did not think too long" rather than "did not 'thought'" (you gotta catch these things man).

    As for what I was actually doing wrong, it didn't occur to me that I should declare my vertex arrays as different arrays, so yes WW, it might have helped to see my face3d class, I'm going to have to make it a point include more code in the future... I was in error to have thought that sufficient.

    All and all that was a bad post on my behalf.

  7. #7
    Join Date
    Jun 2006
    Location
    CT, USA
    Beans
    5,267
    Distro
    Ubuntu 6.10 Edgy

    Re: [SOLVED] What am I doing wrong?

    Quote Originally Posted by Zeotronic View Post
    However, you might want to take note that you probably ment "did not think too long" rather than "did not 'thought'" (you gotta catch these things man).
    OK. When you will be able to catch those in some foreign language (for you). English is my forth, man. From indo-european languages, try for fun Russian Then we will talk

  8. #8
    Join Date
    Apr 2007
    Beans
    14,781

    Re: [SOLVED] What am I doing wrong?

    Quote Originally Posted by pmasiar View Post
    Then we will talk
    In Russian?

    @OP You can make a new thread if you want to reword it instead of trying to save this one.

  9. #9
    Join Date
    Jun 2006
    Location
    CT, USA
    Beans
    5,267
    Distro
    Ubuntu 6.10 Edgy

    Re: [SOLVED] What am I doing wrong?

    Quote Originally Posted by LaRoza View Post
    In Russian?
    Yeah why not, Russian is not my native language either.

    Or try German for change: every noun has gender (and it's not "it"), article "the" has gender too, and 4 forms in singular, 4 in plural. Adjectives too.

  10. #10
    Join Date
    Jun 2007
    Location
    Maryland, US
    Beans
    6,288
    Distro
    Kubuntu

    Re: What am I doing wrong?

    Quote Originally Posted by Zeotronic View Post
    Your emoticon doesn't particularly help me in helping you help me.
    ...
    Let's try writing in English!

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •