Results 1 to 9 of 9

Thread: RESOLVED * How to do this the most efficient way

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member mvrp350's Avatar
    Join Date
    Feb 2001
    Location
    Best, the Netherlands
    Posts
    322

    RESOLVED * How to do this the most efficient way

    Hi,

    What I have is a list with x,y,z coordinates (I.e. x1,y1,z1,x2,y2,z2,x3,y3,z3,x4,y4,z4.. etc)

    I split the list, and put the X, Y, Z coordinates in three seperate arrays: arListX, arListY, arListZ.

    The problem is that some coordinates have more then one occurence in the list with coordinates. (x1,y1,z1) = (x3,y3,z3)

    What I need to do is to filter out all the double occurences in my list.
    And after that I need to have the list sorted.
    The sorting has to be done in the order x,y,z

    x1 = 50 y1 = 12 z1 = 25
    x2 = 75 y2 = 12 z2 = 25
    x3 = 50 y3 = 10 z3 = 25
    x4 = 60 y4 = 12 z4 = 37
    x5 = 30 y5 = 10 z5 = 37
    x6 = 60 y6 = 10 z6 = 37
    x7 = 60 y7 = 10 z7 = 25
    x8 = 60 y8 = 12 z8 = 25


    this should become:
    x1 = 30 y1 = 10 z1 = 37
    x2 = 50 y2 = 12 z2 = 25
    x3 = 60 y3 = 10 z3 = 25
    x4 = 60 y4 = 10 z4 = 37
    x5 = 60 y5 = 12 z5 = 25
    x6 = 60 y6 = 12 z6 = 37
    x7 = 75 y7 = 12 z7 = 25

    Thanks anyway,
    mvrp350
    Last edited by mvrp350; Jul 21st, 2004 at 07:11 AM.

Posting Permissions

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



Click Here to Expand Forum to Full Width