Subversion Repositories gelsvn

Rev

Rev 595 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
595 jab 1
/* ----------------------------------------------------------------------- *
2
 * This file is part of GEL, http://www.imm.dtu.dk/GEL
3
 * Copyright (C) the authors and DTU Informatics
4
 * For license and list of authors, see ../../doc/intro.pdf
5
 * ----------------------------------------------------------------------- */
6
 
7
#include "ply_load.h"
8
 
601 jab 9
#include "../Geometry/ply_load.h"
10
#include "../Geometry/TriMesh.h"
595 jab 11
 
12
#include "Manifold.h"
13
 
14
namespace HMesh
15
{
16
    using std::string;
17
    using Geometry::ply_load;
18
    using Geometry::TriMesh;
19
    bool ply_load(const string& filename, Manifold& m)
20
    {
21
        TriMesh mesh;
22
        if(Geometry::ply_load(filename, mesh))
23
        {
24
            m.build(mesh);
25
            return true;
26
        }
27
        return false;
28
    }
29
}