[Cg1] Re: Bug in bvhio.h

Arsène Pérard-Gayot perard at cg.uni-saarland.de
Wed Dec 18 14:47:07 CET 2019


This is correct. I have updated the zip archive.

Best regards,
   Arsène Pérard-Gayot

Quoting Jannis Christopher Köhl <s8jakoeh at stud.uni-saarland.de>:

> 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
> _______________________________________________
> Cg1 mailing list
> Cg1 at cg.uni-saarland.de
> http://mail.cg.uni-saarland.de/mailman/listinfo/cg1

More information about the Cg1 mailing list