Documentation Return type of Traverse
cadop opened this issue · comments
cadop commented
In the readme/documentation, the code example says that the accel.Traverse()
returns the nearest hit point. However, it is a bool
, so I don't think it can actually return a point.
// Returns nearest hit point(if exists)
BVHTraceOptions trace_options; // optional
bool hit = accel.Traverse(ray, triangle_intersecter, trace_options);
Is there a different method that does return the hitpoint?
Syoyo Fujita commented
Line 736 in 8f8ce22
Documentation for Traverse
is described here.
Syoyo Fujita commented
There was some inconsistencies in README.md and the source code, so modified it in this commit: 65d776e