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. Drawing 3D from x, y, z coordinates..
Forum Updated to NodeBB v4.3 + New Features

Drawing 3D from x, y, z coordinates..

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 3 Posters 1.9k Views 2 Watching
  • 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.
  • F Offline
    F Offline
    facing problems
    wrote on last edited by
    #1

    hello Qt,
    In my project, i need to draw 3d from x,y,z coordinates. how should i do it?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! You can use QOpenGLWidget for example.

      1 Reply Last reply
      3
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome
        What kind of 3d ?
        OpenGL is very good for all 3D.

        If you want better input, you should specify a bit more what you have, and what you want to draw,

        F 1 Reply Last reply
        1
        • mrjjM mrjj

          Hi and welcome
          What kind of 3d ?
          OpenGL is very good for all 3D.

          If you want better input, you should specify a bit more what you have, and what you want to draw,

          F Offline
          F Offline
          facing problems
          wrote on last edited by
          #4

          @mrjj
          Well, I have file which contains coordinates x,y,z. from which I am reading data using "textstream" by "readLine" function, (which is by the cnc gcode file). now from this data i need to draw tool path which in 3d.
          this link shows what i want http://camotics.org/images/screenshots/tool_path_view.png

          mrjjM 1 Reply Last reply
          0
          • F facing problems

            @mrjj
            Well, I have file which contains coordinates x,y,z. from which I am reading data using "textstream" by "readLine" function, (which is by the cnc gcode file). now from this data i need to draw tool path which in 3d.
            this link shows what i want http://camotics.org/images/screenshots/tool_path_view.png

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @facing-problems
            pretty cool :)
            I think the QOpenGLWidget @wieland suggest will work fine.

            if you never used openGL before, prepare to learn/read first.

            1 Reply Last reply
            1
            • F Offline
              F Offline
              facing problems
              wrote on last edited by
              #6

              thanks guys for helping out !!!

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by A Former User
                #7

                If you plan to build something more complex than just drawing points in 3D space, maybe look for a more sophisticated library instead of reinventing the wheel (which is much harder than you might think). E.g. FreeCAD supports plugins; a primitive but free CAD kernel is Open Cascade.

                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