Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Sort Q3D Scatter Data Array that contains many QVector3D.

Sort Q3D Scatter Data Array that contains many QVector3D.

Scheduled Pinned Locked Moved Unsolved General and Desktop
sorting
1 Posts 1 Posters 290 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Elthon
    wrote on last edited by Elthon
    #1

    The Q3D Scatter Data Array consist of many QVector3D 3Dvectors. Each of the QVector3D in the Array is a 3D vector that consist of (x,y,z) value. I would like to arrange the Array which contains the 3D vectors, in order of smallest value of Z to largest and if there is replicate/same value of Z then arrange the smaller X value first. If both Z and X value the same then the order doesn't matter.

    Can someone please enlighten me, will appreciate your help so much! thanks.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved