Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Calculating bounding shape of group of elements without corners
Forum Updated to NodeBB v4.3 + New Features

Calculating bounding shape of group of elements without corners

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 836 Views 1 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.
  • T Offline
    T Offline
    thornag
    wrote on last edited by
    #1

    Hi guys,

    First just wanted to say Hi to everyone here.

    I have a little problem with not so much execution but an idea with how to calculate a 'bounding shape' for a group of objects.

    !http://screenshu.com/static/uploads/temporary/z5/8n/4r/pyfuei.jpg(Before)!

    So in the above example you can see a graphicView, graphicScene and a group of selected graphicItems

    Now, I can possibly work out what is the bounding polygon of this by looping through selection and comparing points/areas, but what I would love to get is something similar to

    !http://screenshu.com/static/uploads/temporary/6u/34/m3/4hmhd8.jpg(After)!

    So I want a shape that surrounds my selection but has no corners.

    Any pointing towards the right direction much appreciated.

    Cheers
    Michael

    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