Subversion Repositories gelsvn

Rev

Rev 383 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 383 Rev 595
Line -... Line 1...
-
 
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
 
1
#include "ply_load.h"
7
#include "ply_load.h"
2
#include "Geometry/ply_load.h"
-
 
3
#include "HMesh/Manifold.h"
-
 
4
#include "build_manifold.h"
-
 
5
 
8
 
-
 
9
#include <Geometry/ply_load.h>
-
 
10
#include <Geometry/TriMesh.h>
6
 
11
 
7
using namespace std;
-
 
8
using namespace CGLA;
-
 
9
using namespace HMesh;
12
#include "Manifold.h"
10
using namespace Geometry;
-
 
11
 
13
 
12
namespace HMesh
14
namespace HMesh
13
{
15
{
-
 
16
    using std::string;
-
 
17
    using Geometry::ply_load;
-
 
18
    using Geometry::TriMesh;
14
		bool ply_load(const std::string& filename, HMesh::Manifold& m)
19
    bool ply_load(const string& filename, Manifold& m)
15
		{
20
    {
16
				TriMesh mesh;
21
        TriMesh mesh;
17
				Geometry::ply_load(filename, mesh);
22
        if(Geometry::ply_load(filename, mesh))
-
 
23
        {
18
				build_manifold(m, mesh);
24
            m.build(mesh);
19
				return true;
25
            return true;
20
		}
26
        }
-
 
27
        return false;
-
 
28
    }
21
}
29
}