- Laplacian Smoothing
- lamda = 0.25
- Taubin Smoothing
- lamda = 0.5
- mu = -0.67
-
Download OpenMesh via website or git
- static version: OpenMesh Download Page
- development version:
git clone https://www.graphics.rwth-aachen.de:9000/OpenMesh/OpenMesh.git
-
Unzip and build
- Unzip
cd OpenMesh-6.1
mkdir build
cd build
- debug version:
cmake .. -DCMAKE_BUILD_TYPE=Debug
release version:cmake .. -DCMAKE_BUILD_TYPE=Release
sudo make install
just make
if error while loading shared libraries
add "/usr/local/lib" in /etc/ld.so.conf
sudo ldconfig
Laplacian Smoothing = 1
Taubin Smoothing = 2
./smoothEx <algorithm> <times> <input obj file> <output obj file>
- example of Laplacian Smoothing:
./smoothEx 1 50 input.obj output.obj
- example of Taubin Smoothing:
./smoothEx 2 50 input.obj output.obj
- filename.obj: only vertex and face
- filename_n.obj: add vertex normal