Blender Git Loki

Git Commits -> Revision d674041

Revision d674041 by Andre Susano Pinto (master)
July 9, 2008, 19:43 (GMT)
Add raycast ability for BLI_kdopbvh

small bvh fixes:
*allow to create any tree type >= 2
*save split axis

changed shrinkwrap to perform normal cast with raytree and bvh tree and print both times:

Shrinkwrap (OBCube)24578 over (OBSuzanne)504482
target = raytree_create_from_mesh(calc->target): 1260.000000ms
shrinkwrap_calc_normal_projection_raytree(&calc): 1850.000000ms
tree = bvhtree_from_mesh_tri(calc->target): 3330.000000ms
shrinkwrap_calc_normal_projection(&calc): 3780.000000ms

On general query time is bit smaller on bvh tree..
but the build time of bvh is pretty big.
(build time can be removed from both if a cache system is added)
But I am still trying to see how fast I can make the bvh build

Commit Details:

Full Hash: d674041f2b7623985bcae26df04ac678d25f355b
SVN Revision: 15509
Parent Commit: 37a017b
Lines Changed: +387, -24

3 Modified Paths:

/source/blender/blenkernel/intern/shrinkwrap.c (+214, -15) (Diff)
/source/blender/blenlib/BLI_kdopbvh.h (+18, -0) (Diff)
/source/blender/blenlib/intern/BLI_kdopbvh.c (+155, -9) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021