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. Triangulator for QPainterPath
QtWS25 Last Chance

Triangulator for QPainterPath

Scheduled Pinned Locked Moved Unsolved General and Desktop
qpainterpathtriangulator
6 Posts 2 Posters 2.1k 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.
  • T Offline
    T Offline
    THE_MASTER
    wrote on 1 Nov 2016, 16:46 last edited by
    #1

    I have complex closed QPainterPath, does Qt have a built-in tool for triangulation? At the exit I needed triangles to Opengl rendering...
    P.S.: my closed path may have holes...

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on 1 Nov 2016, 18:05 last edited by
      #2

      Hi! No, there's no triangulation functionality included. If you're fine with GPL / LGPL then have a look at the Computational Geometry Algorithms Library.

      T 1 Reply Last reply 1 Nov 2016, 20:54
      1
      • ? A Former User
        1 Nov 2016, 18:05

        Hi! No, there's no triangulation functionality included. If you're fine with GPL / LGPL then have a look at the Computational Geometry Algorithms Library.

        T Offline
        T Offline
        THE_MASTER
        wrote on 1 Nov 2016, 20:54 last edited by
        #3

        @Wieland
        Thanks, but I do not fit GPL...
        I need a triangulation algorithm arbitrary polygon with holes in C ++ ...

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on 1 Nov 2016, 21:04 last edited by
          #4

          The only other good stand-alone implementation I know of is Triangle by J.R. Shewchuk. But I don't know how much he charges for a license.

          T 1 Reply Last reply 1 Nov 2016, 21:23
          0
          • ? A Former User
            1 Nov 2016, 21:04

            The only other good stand-alone implementation I know of is Triangle by J.R. Shewchuk. But I don't know how much he charges for a license.

            T Offline
            T Offline
            THE_MASTER
            wrote on 1 Nov 2016, 21:23 last edited by
            #5

            @Wieland
            Thanks!
            I seen this link....this suitable for finite element analysis, but i don't need large mesh, i need simple mesh for rendering (OpenGL)...
            Hmm.... How about OpenGL Tesselator? May he made triangles for arbitrary polygin with holes? I don't think so...
            I should to find out good algorithm and realize it on C++ for triangulate arbitrary polygon with holes... May be you know realy good and fast algorithms ?

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on 1 Nov 2016, 21:34 last edited by
              #6

              There is a reason why there are almost no usable free implementations out there: Because it's harder than one would think at first sight. Maybe start which Shewchuk's papers to get a first idea of the problem.

              1 Reply Last reply
              0

              6/6

              1 Nov 2016, 21:34

              • Login

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