Subversion Repositories gelsvn

Rev

Rev 595 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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