项目作者: yixinglu

项目描述 :
Catmull-Clark subdivision surface generation project.
高级语言: C++
项目地址: git://github.com/yixinglu/cc-subdivision.git
创建时间: 2013-12-12T13:48:12Z
项目社区:https://github.com/yixinglu/cc-subdivision

开源协议:

下载


The project implements the Catmull-Clark subdivision surface algorithm with C++.

The source includes following knowledge:

  • half edge data structure representing mesh.
  • C++11 syntax and shared_ptr, weak_ptr.
  • freeglut opengl library.
  • obj file reading implementation.

Build

In ubuntu:

  1. $ sudo apt install -y freeglut3-dev
  2. $ mkdir build && cd build
  3. $ cmake .. && make -j

In macOS:

  1. $ brew install freeglut
  2. $ mkdir build && cd build
  3. $ cmake .. && make -j

Usage

  • ccsubd filename.obj
  • up/down/left/right arrow key -> up/down/left/right rotation
  • c key -> subdivison one time
  • u key -> previous mesh