Skip to content

Commit ef69688

Browse files
committed
Merge branch 'master' of https://github.com/Forceflow/trimesh2
2 parents 4664a36 + 760723c commit ef69688

File tree

4 files changed

+7
-14
lines changed

4 files changed

+7
-14
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ A C++ library and set of utilities for input, output, and basic manipulation of
77
This is a fork of the [TriMesh2 library](http://gfx.cs.princeton.edu/proj/trimesh2/) (originally by [Szymon Rusinkiewicz](https://www.cs.princeton.edu/~smr/)), which I use a lot in my other graphics projects. I like TriMesh2 because of the low setup costs required to do model loading and manipulation, as well as the robust and powerful implementation of model manipulation.
88

99
## Getting started
10-
* Download a prebuilt release of trimesh2 (coming soon!) or build the library yourself. The static library will be called `trimesh.lib`, the debug version is `trimeshd.lib`.
11-
* For **Windows**, Visual Studio CE 2015 and 2017 solutions are in the *mscv* folder. The built library will be placed in a folder named `lib.(architecture).(visual studio version)`. For example, for a 64-bit Visual Studio 2017 build, it will be `lib.win64.vs141`.
12-
* For **Linux**, a makefile is provided
10+
* Download a [prebuilt release](https://github.com/Forceflow/trimesh2/releases) of trimesh2 or build the library yourself. The static library will be called `trimesh.lib`, the debug version is `trimeshd.lib`.
11+
* For **Windows**, Visual Studio Community Edition 2015 and 2017 solutions are in the *mscv* folder. The built library will be placed in a folder named `lib.(architecture).(visual studio version)`. For example, for a 64-bit Visual Studio 2017 build, it will be `lib.win64.vs141`.
12+
* For **Linux**, a makefile is provided. You might need additional packages. On Ubuntu these are: `mesa-common-dev libglu1-mesa-dev`.
1313
* In your own project, make sure you include the header `include/TriMesh.h`, and make sure the static library is in your build path. All Trimesh2 functions will be in the `TriMesh` namespace.
1414
* For inspiration on how to use the library, check out the utilities in the `utilsrc` folder, or just start by loading a model : `TriMesh* themesh = TriMesh::read(filename);`
15-
16-
## News
17-
* mesh_view tool now builds in Win64 without external dependencies!
1815

1916
## Info
2017
Legacy:

include/ICP.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Routines for doing ICP.
1010
#include "TriMesh.h"
1111
#include "XForm.h"
1212
#include "KDtree.h"
13+
#include "timestamp.h"
1314

1415

1516
namespace trimesh {
@@ -38,4 +39,4 @@ extern float ICP(TriMesh *s1, TriMesh *s2, const xform &xf1, xform &xf2,
3839
int verbose = 0,
3940
bool do_scale = false, bool do_affine = false);
4041

41-
}; // namespace trimesh
42+
}; // namespace trimesh

include/timestamp.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef TIMESTAMP_H
2-
#define TIMESTAMP_H
1+
#pragma once
32
/*
43
Szymon Rusinkiewicz
54
Princeton University
@@ -59,7 +58,7 @@ Wrapper around system-specific timestamps.
5958
#else
6059

6160
#include <sys/time.h>
62-
#include <unistd.h>
61+
// #include <unistd.h>
6362

6463
namespace trimesh {
6564

@@ -81,6 +80,3 @@ Wrapper around system-specific timestamps.
8180
}; // namespace trimesh
8281

8382
#endif
84-
85-
86-
#endif

libsrc/ICP.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Routines for doing ICP.
1010
#include <algorithm>
1111
#include "ICP.h"
1212
#include "KDtree.h"
13-
#include "timestamp.h"
1413
#include "lineqn.h"
1514
using namespace std;
1615

0 commit comments

Comments
 (0)