-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
16 lines (12 loc) · 823 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM ubuntu:14.04
RUN apt-get -y update
RUN apt-get -y install git
RUN apt-get -y install build-essential
RUN git clone https://github.com/cnr-isti-vclab/vcglib.git
RUN git checkout v1.0.1
# without color, it will cause the assertion 0 exception
RUN sed -i 's/^\s*class\s*MyVertex\s*:\s*public.*$/class MyVertex : public vcg::Vertex< MyUsedTypes, vcg::vertex::Coord3f, vcg::vertex::Normal3f, vcg::vertex::BitFlags, vcg::vertex::Color4b >{};/g' $(find / -name trimesh_clustering.cpp)
# make the trimesh_clustering applied for common file type.
RUN sed -i 's/ImporterPLY/Importer/g' $(find / -name trimesh_clustering.cpp)
RUN sed -i 's/ExporterPLY/Exporter/g' $(find / -name trimesh_clustering.cpp)
RUN g++ -std=c++11 -g -I /vcglib $(find / -name plylib.cpp) $(find / -name trimesh_clustering.cpp) -o trimesh_clustering