[Cg1] Bug in bvhio.h

Jannis Christopher Köhl s8jakoeh at stud.uni-saarland.de
Wed Dec 18 13:43:22 CET 2019


Hello everyone,

the provided version of bvhio.h contains the following definition:

void setRootId(size_t rootId) override { rootId = rootId; }

This method does nothing, since the parameter "rootId" shadows the
field "rootId" that should be written to. Hence the rootId always
stays 0 and cannot be changed. This can be fixed by prefixing the
rootId on the left side of the equal sign with "this->".

Best regards
Jannis Köhl




More information about the Cg1 mailing list