Commit 59859f12 authored by Kristin Berry's avatar Kristin Berry
Browse files

Set useQuantizedAabbCompression = false in BulletDskShape to fix segfaults...

Set useQuantizedAabbCompression = false in BulletDskShape to fix segfaults when using bullet for raytracing
parent 9da06de1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -232,8 +232,8 @@ namespace Isis {
      btAssert ( pindex[i] < v_vertices );
    }

    bool useQuantizedAabbCompression = true;
    // bool useQuantizedAabbCompression = false;
    // bool useQuantizedAabbCompression = true;
    bool useQuantizedAabbCompression = false;
    btBvhTriangleMeshShape *v_triShape = new btBvhTriangleMeshShape(m_mesh.data(), 
                                                                    useQuantizedAabbCompression);
    v_triShape->setUserPointer(this);
+2 −0
Original line number Diff line number Diff line
@@ -38,6 +38,8 @@ namespace Isis {
 * @author 2017-03-17 Kris Becker 
 * @internal 
 *   @history 2017-03-17  Kris Becker  Original Version
 *   @history 2018-08-24  Kristin Berry - Set useQuantizedAabbCompression = false to fix segfault
 *                          in a spiceinit test under cmake. 
 */
  class BulletDskShape : public BulletTargetShape {
    public: