|
|
Am 04.03.2016 um 19:51 schrieb Le_Forgeron:
> Le 04/03/2016 19:41, William F Pokorny a écrit :
> Nope, even with a produced "right" picture, valgrind reports a definitive problem of
uninitialised data.
If valgrind was right, that would certainly explain the problems.
Unfortunately it's mistaken.
Valgrind's report indicates that Bezier_Node_Struct::Radius_Squared is
not (or not always) initialized properly when
BicubicPatch::bezier_tree_walker() is called.
But if that is the case, then adding
Node->Radius_Squared = -1;
to BicubicPatch::create_new_bezier_node() and adding
POV_ASSERT(Node->Radius_Squared >= 0);
to the beginning of BicubicPatch::bezier_tree_walker() should force the
code to bomb.
It doesn't. Valgrind must be seeing ghosts.
Post a reply to this message
|
|