On Thursday, 24 January 2013 at 13:22:20 UTC, Maxim Fomin wrote:
On Thursday, 24 January 2013 at 10:14:29 UTC, Minas Mina wrote:
I am trying to create a BVH tree structure to speed up raytracing. So far it has been fine. I have created the BVH tree. It works for 202 triangles/spheres.

<skipped>

Thanks.

Requests for debugging help without source code are likely to be buried in archives silently. Perhaps you can look at _d_dynamic_cast source code (https://github.com/D-Programming-Language/druntime/blob/master/src/rt/cast_.d#L69) and figure out the exact statement which produces segfault.

The code can be found here:
https://github.com/minas1/D_Raytracing

The code that creates the BVH tree is in bvh.d.
The code that prints the tree is in main.d.

Reply via email to