Fix uninitialized members in Ray_hit_generator2.h

This commit is contained in:
Giles Bathgate 2020-11-18 07:43:12 +00:00
parent 1cebf95ac7
commit c4b5b2eff7
1 changed files with 2 additions and 1 deletions

View File

@ -69,7 +69,8 @@ class Ray_hit_generator2 : public Modifier_base<typename Nef_::SNC_and_PL> {
bool vertex_added; bool vertex_added;
public: public:
Ray_hit_generator2(Vector_3 d, Vertex_handle v) : dir(d), vs(v) {} Ray_hit_generator2(Vector_3 d, Vertex_handle v)
: dir(d), vs(v), sncp(nullptr), pl(nullptr), edge_splitted(false), vertex_added(false) {}
Vertex_handle create_vertex_on_first_hit(const Ray_3& r) { Vertex_handle create_vertex_on_first_hit(const Ray_3& r) {