Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Forceflow committed Aug 19, 2017
2 parents 4664a36 + 760723c commit ef69688
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@ A C++ library and set of utilities for input, output, and basic manipulation of
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.

## Getting started
* 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`.
* 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`.
* For **Linux**, a makefile is provided
* 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`.
* 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`.
* For **Linux**, a makefile is provided. You might need additional packages. On Ubuntu these are: `mesa-common-dev libglu1-mesa-dev`.
* 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.
* 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);`

## News
* mesh_view tool now builds in Win64 without external dependencies!

## Info
Legacy:
Expand Down
3 changes: 2 additions & 1 deletion include/ICP.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Routines for doing ICP.
#include "TriMesh.h"
#include "XForm.h"
#include "KDtree.h"
#include "timestamp.h"


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

}; // namespace trimesh
}; // namespace trimesh
8 changes: 2 additions & 6 deletions include/timestamp.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef TIMESTAMP_H
#define TIMESTAMP_H
#pragma once
/*
Szymon Rusinkiewicz
Princeton University
Expand Down Expand Up @@ -59,7 +58,7 @@ Wrapper around system-specific timestamps.
#else

#include <sys/time.h>
#include <unistd.h>
// #include <unistd.h>

namespace trimesh {

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

#endif


#endif
1 change: 0 additions & 1 deletion libsrc/ICP.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Routines for doing ICP.
#include <algorithm>
#include "ICP.h"
#include "KDtree.h"
#include "timestamp.h"
#include "lineqn.h"
using namespace std;

Expand Down

0 comments on commit ef69688

Please sign in to comment.