summaryrefslogtreecommitdiff
path: root/thirdparty/thekla_atlas/nvmesh/geometry/Bounds.h
blob: 1cb5b7b905af444e19f64e4685e607cb0d1e5e99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// This code is in the public domain -- Ignacio Castaño <castano@gmail.com>

#pragma once
#ifndef NV_MESH_MESHBOUNDS_H
#define NV_MESH_MESHBOUNDS_H

#include <nvmath/Sphere.h>
#include <nvmath/Box.h>

#include <nvmesh/nvmesh.h>

namespace nv
{
    class BaseMesh;
    namespace HalfEdge { class Mesh; }

    // Bounding volumes computation.
    namespace MeshBounds
    {
        Box box(const BaseMesh * mesh);
        Box box(const HalfEdge::Mesh * mesh);

        Sphere sphere(const HalfEdge::Mesh * mesh);
    }

} // nv namespace

#endif // NV_MESH_MESHBOUNDS_H