bf05309af7
As requested by reduz, an import of thekla_atlas into thirdparty/
28 lines
569 B
C++
28 lines
569 B
C++
// 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
|