Results 1 to 4 of 4

Thread: Qt3D: QPolygonMeshWithHole geometry

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2006
    Dresden, Germany
    Thanked 7 Times in 7 Posts
    Qt products
    MacOS X Unix/X11 Windows

    Lightbulb Qt3D: QPolygonMeshWithHole geometry

    Hi there,

    does anybody have a mesh implementation for a polygon mesh (ideally with hole) ready or does anybody know about a project using such a mesh?

    If there's nothing like that available, I would create such a mesh myself - in such case I'd appreciate feedback/suggestions on the API. Currently I would favour something like:

    Qt Code:
    1. // polygons defined 2D plane, n > 2
    2. // with vectors of first and last segment must not be parallel
    3. // inner polygon must not intersect with outer polygon, but may have a joined
    4. // point, but no joined segments
    5. QPolygonF outerPolygon = ...;
    6. QPolygonF innerPolygon = ...;
    8. QPolygonMesh * mesh = new QPolygonMesh();
    9. mesh->setPolygon(outerPolygon);
    10. mesh->setInnerPolygon(innerPolygon);
    11. mesh->setMaxSegmentLength(0.1);
    To copy to clipboard, switch view to plain text mode 

    Polygon would be created in x-z plane such, that p0 is the origin (0,0,0) (translating all polygon points accordingly).

    What do you think?
    Last edited by ghorwin; 11th December 2019 at 14:50.

Similar Threads

  1. QScrollbar has no geometry
    By Ini in forum Qt Programming
    Replies: 4
    Last Post: 30th January 2016, 03:36
  2. Geometry of QWebElement
    By TeeT in forum Newbie
    Replies: 4
    Last Post: 17th April 2015, 15:48
  3. QPlainTextEdit and geometry
    By tuli in forum Qt Programming
    Replies: 2
    Last Post: 12th August 2014, 13:42
  4. frameGeometry vs Geometry
    By bossy in forum Newbie
    Replies: 4
    Last Post: 18th October 2013, 00:55
  5. QGraphicsLayout::geometry()
    By isutruk in forum Qt Programming
    Replies: 1
    Last Post: 19th October 2009, 15:43

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.