18#include <Qt3DExtras/QPhongMaterial>
26QgsChunkBoundsEntity::QgsChunkBoundsEntity( Qt3DCore::QNode *parent )
29 mAabbMesh =
new Qgs3DWiredMesh;
30 addComponent( mAabbMesh );
32 Qt3DExtras::QPhongMaterial *bboxesMaterial =
new Qt3DExtras::QPhongMaterial;
33 bboxesMaterial->setAmbient( Qt::red );
34 addComponent( bboxesMaterial );
37void QgsChunkBoundsEntity::setBoxes(
const QList<QgsAABB> &bboxes )
39 mAabbMesh->setVertices( bboxes );