Draft: BVH for the surface model work in progress
Work in progress for the implementation of the BVH acceleration in the surface model
Main changes:
- The BVH has been adapted so it can be constructed from Axis Aligned Bounding Boxes (AABBs) coming from surfaces
- The ABBoxManager can now compute AABBs for surfaces
- New BVHSurfNavigator implementing the callbacks required by the BVH class in order to find candidates
- Added
Extent3D
method to theFrame
struct - Added data needed for the BVH to
VolumeShell
andSurfData
: List of surfaces of the daughters of aLogicalVolume
, their transformations with respect to that volume, the id of thePlacedVolume
they belong to, and the BVH of theLogicalVolume
- Added the initialization and copy of the BVH data into
BrepHelper
andBrepCudaManager
Minor items:
- New operator* for the Transformation3DMP
Main issues and bugs:
- Some incorrect distances returned by the BVH on device that don't appear on the host
- Safety computation is correct for AABBs but incorrect for frames
Edited by Juan Gonzalez Caminero