Details
Description
get assert failures in the Sphere::constructRitterSphere call if points is empty. Following patch fixes that issue. Not sure why points are empty, but I'm having issues because my rendering of the scene takes place after the Qt3DWindow viewer is constructed (no way around that in terms of the flow of things in my code).
diff --git a/src/render/frontend/sphere.cpp b/src/render/frontend/sphere.cpp index 4ff17ea..d5d6ef8 100644 --- a/src/render/frontend/sphere.cpp +++ b/src/render/frontend/sphere.cpp @@ -163,7 +163,9 @@ Sphere Sphere::fromPoints(const QVector<QVector3D> &points) void Sphere::initializeFromPoints(const QVector<QVector3D> &points) { - constructRitterSphere(*this, points); + if(points.size() > 0) { + constructRitterSphere(*this, points); + } } void Sphere::expandToContain(const QVector3D &p)