我使用示例在屏幕上獲得了任意固體QMesh。這很棒。但我無能爲力。 mesh-> children()。count = 0,mesh-> primitiveCount = 0,mesh-> geometry()= 0等等。如何獲取QMesh的內部內容?我可以通過編程方式更改QMesh頂點(幾何圖形)嗎? 「setSource()」似乎不適合所有場合。如何獲取和操作QMesh頂點,面,其他東西?
2
A
回答
0
Qt3DCore::QEntity * meshEntity = new Qt3DCore::QEntity(rootEntity);
Qt3DRender::QMesh * mesh = new Qt3DRender::QMesh();
QUrl url;
url.setScheme("file");
url.setPath("/tmp/trefoil.obj");
mesh->setSource(url);
// now i print some of properties.
qDebug() << mesh->geometry() << ", children nodes=" << mesh->childrenNodes().count();
// ... children... primitiveCount... and so on. I see only empty values.
相關問題
- 1. Android WebView和其他東西
- 2. jquery:包含東西或其他東西
- 3. IE發射其他東西,但點擊
- 4. 定製烤麪包或其他東西?
- 5. 如何找到沒有東西時返回其他東西?
- 6. 如何指定其他操作以獲取其他URI
- 7. Javascript,字符串操作,正則表達式或其他東西
- 8. Python 2.7如果middle_name爲null打印其他東西打印其他東西
- 9. JComboBox涵蓋其他東西?
- 10. 用其他東西替換
- 11. Laravel FirstOrCreate或其他東西
- 12. textview或其他東西
- 13. 處理意見和其他東西
- 14. Python語法和其他東西檢查?
- 15. Android - 關於TTS和其他東西
- 16. Fancybox:添加標題和其他東西
- 17. Ajax .serializeArray()函數和其他東西
- 18. Python,SWIG和其他奇怪的東西
- 19. 如何讓onclick在點擊其他東西后消失
- 20. 通過名稱或其他東西獲取React.js組件
- 21. 獲取IMG ALT其父的href東西
- 22. 靜態庫或其他任何東西
- 23. 字符串操作[:東西]
- 24. 如何在檢查和做其他許多東西在CMD
- 25. 如何在覈心數據中存儲CGRect和其他東西
- 26. 如何使用簡單的html解析器或其他東西來獲取值
- 27. 大小8和其他東西的讀取無效
- 28. 寫作照片(和其他東西)到磁盤,並在iphone
- 29. 事件和其他東西一般不起作用
- 30. 如何匹配以某個開頭的東西以及其他的東西?
您能否提供一些代碼示例,以便我們能夠更好地看到您正在嘗試完成的任務? – MichaelDotKnox