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. How to check that a STL CAD model is loaded successfully in Qt3D?

How to check that a STL CAD model is loaded successfully in Qt3D?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 281 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.
  • W Offline
    W Offline
    wang_qt
    wrote on last edited by
    #1

    The normal way of loading an stl cad modle is,
    Qt3DRender::QMesh *CustomMesh = new Qt3DRender::QMesh(sceneRoot);
    CustomMesh->setSource(QUrl::fromLocalFile("D:\temp8\f2m.STL"));

    However, I cannot judge in the code that the cad modle is loaded successfully or not.

    Thank you.

    ODБOïO 1 Reply Last reply
    0
    • W wang_qt

      The normal way of loading an stl cad modle is,
      Qt3DRender::QMesh *CustomMesh = new Qt3DRender::QMesh(sceneRoot);
      CustomMesh->setSource(QUrl::fromLocalFile("D:\temp8\f2m.STL"));

      However, I cannot judge in the code that the cad modle is loaded successfully or not.

      Thank you.

      ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      @wang_qt hi,
      is this what are you looking for ? https://doc.qt.io/qt-5.11/qt3drender-qmesh.html#status-prop

      1 Reply Last reply
      2

      • Login

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