Viewing 1 reply thread
  • Author
    Posts
    • #9181 Score: 0
      KSkun
      Participant

      作业7框架中Triangle.hpp实现的MeshTriangle,其成员变量中的几个shared_ptr均未被恰当初始化,若调用Scene::trace,进而会调用MeshTriangle::intersect(const Ray& ray, float& tnear, uint32_t& index)这个函数,导致空指针解引用,发生段错误

      Attachments:
      You must be logged in to view attached files.
    • #9183 Score: 0
      KSkun
      Participant

      改用Scene::intersect似乎可以解决问题,弃用的函数最好标注一下吧

Viewing 1 reply thread
  • You must be logged in to reply to this topic.