17#include "moc_qgschunkboundsentity_p.cpp"
19#include <Qt3DExtras/QPhongMaterial>
27QgsChunkBoundsEntity::QgsChunkBoundsEntity( Qt3DCore::QNode *parent )
30 mAabbMesh =
new Qgs3DWiredMesh;
31 addComponent( mAabbMesh );
33 Qt3DExtras::QPhongMaterial *bboxesMaterial =
new Qt3DExtras::QPhongMaterial;
34 bboxesMaterial->setAmbient( Qt::red );
35 addComponent( bboxesMaterial );
38void QgsChunkBoundsEntity::setBoxes(
const QList<QgsAABB> &bboxes )
40 mAabbMesh->setVertices( bboxes );