summaryrefslogtreecommitdiff
path: root/thirdparty/thekla_atlas/nvmesh/param/Util.h
blob: 774563ac0b6c8ab984227834e05efa517cebcfb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// This code is in the public domain -- castano@gmail.com

#include "nvmesh/nvmesh.h"

namespace nv {

    namespace HalfEdge { class Mesh; class Vertex; }

    bool isQuadMesh(const HalfEdge::Mesh * mesh);
    bool isTriangularMesh(const HalfEdge::Mesh * mesh);

    uint countMeshTriangles(const HalfEdge::Mesh * mesh);
    const HalfEdge::Vertex * findBoundaryVertex(const HalfEdge::Mesh * mesh);

    HalfEdge::Mesh * unifyVertices(const HalfEdge::Mesh * inputMesh);
    HalfEdge::Mesh * triangulate(const HalfEdge::Mesh * inputMesh);

} // nv namespace