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.
Forum Updated to NodeBB v4.3 + New Features

Sort Q3D Scatter Data Array that contains many QVector3D.

Scheduled Pinned Locked Moved Unsolved General and Desktop
sorting
1 Posts 1 Posters 210 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 19 Jun 2021, 08:02 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

    1/1

    19 Jun 2021, 08:02

    • Login

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