Subversion Repositories gelsvn

Rev

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

Rev 383 Rev 595
Line 1... Line 1...
1
#include "ply_load.h"
1
/* ----------------------------------------------------------------------- *
2
#include "Geometry/ply_load.h"
2
 * This file is part of GEL, http://www.imm.dtu.dk/GEL
3
#include "HMesh/Manifold.h"
3
 * Copyright (C) the authors and DTU Informatics
4
#include "build_manifold.h"
4
 * For license and list of authors, see ../../doc/intro.pdf
-
 
5
 * ----------------------------------------------------------------------- */
5
 
6
 
-
 
7
#include "ply_load.h"
6
 
8
 
7
using namespace std;
9
#include <Geometry/ply_load.h>
8
using namespace CGLA;
-
 
9
using namespace HMesh;
10
#include <Geometry/TriMesh.h>
-
 
11
 
10
using namespace Geometry;
12
#include "Manifold.h"
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;
-
 
26
        }
-
 
27
        return false;
20
		}
28
    }
21
}
29
}