class cogs::AabbHierarchy — HIRO 0.7.0 documentation

# class cogs::AabbHierarchy

## Overview

Space-partitioning data structure for point clouds. More…

    #include <AabbHierarchy.h>

    class AabbHierarchy {
    public:
        // structs

        struct TreeNode;

        // construction

        AabbHierarchy(std::vector<geom::Triangle3>& triangles, const geom::Aabb3& aabb);

        // methods

        void GetIntersections(const geom::Line3& ray, std::vector<glm::vec3>* intersections) const;
    };

## Detailed Documentation

Space-partitioning data structure for point clouds.

### Methods

    void GetIntersections(const geom::Line3& ray, std::vector<glm::vec3>* intersections) const

Computes first intersection of each node with the input ray and resulting intersections returns as a vector.