Skip to content
Permalink
Browse files

fix the bug

  • Loading branch information
PeterPetrik authored and wonder-sk committed Aug 1, 2017
1 parent f7c942c commit d7b821d92e818868aeea761969aa04ad8de634e5
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/3d/pointentity.cpp
@@ -86,6 +86,8 @@ PointEntity::PointEntity( const Map3D &map, QgsVectorLayer *layer, const Point3D
instanceDataAttribute->setVertexSize( 3 );
instanceDataAttribute->setDivisor( 1 );
instanceDataAttribute->setBuffer( instanceBuffer );
instanceDataAttribute->setCount(count);
instanceDataAttribute->setByteStride(3 * sizeof(float));

Qt3DRender::QGeometry *geometry = nullptr;
QString shape = symbol.shapeProperties["shape"].toString();
@@ -159,6 +161,7 @@ PointEntity::PointEntity( const Map3D &map, QgsVectorLayer *layer, const Point3D
}

geometry->addAttribute( instanceDataAttribute );
geometry->setBoundingVolumePositionAttribute(instanceDataAttribute);

Qt3DRender::QGeometryRenderer *renderer = new Qt3DRender::QGeometryRenderer;
renderer->setGeometry( geometry );

0 comments on commit d7b821d

Please sign in to comment.
You can’t perform that action at this time.