Skip to content
No description, website, or topics provided.
C++ CMake
Branch: master
Clone or download
Latest commit 75ab23c Nov 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cubicStylization_ImGui also save input mesh Nov 7, 2019
cubicStylization_cmd
libigl @ c645aac
meshes delete profile code part Nov 6, 2019
utils
.gitignore add cmd version Nov 7, 2019
.gitmodules add submodule Nov 6, 2019
LICENSE.MPL2
README.md Update README.md Nov 7, 2019

README.md

Cubic Stylization

Cubic stylization is a 3D stylization tool. Unlike image stylization (2D to 2D) and non-photorealistic rendering (3D to 2D), cubic stylization is a 3D to 3D stylization algorithm which takes a manifold triangle mesh as the input and outputs a cubified triangle mesh.

This is a C++ implementation based on "Cubic Stylization" by Hsueh-Ti Derek Liu and Alec Jacobson.

Download

We can download the application by cloning the repository with the RECURSIVE option

git clone --recursive https://github.com/HTDerekLiu/CubicStylization_Cpp.git

1. ImGui version

Once we clone the cubic stylization code, we offer an ImGui version in folder cubicStylization_ImGui for one to play with the stylization interactively in the GUI. To compile the application, please type these commands in the terminal

cd CubicStylization_Cpp/cubicStylization_ImGui
mkdir build
cd build
cmake ..
make

This will create the excutable of the cubic stylization. To start the application, please run

./cubicStylization_bin [meshName]

where the example meshes are provided in /CubicStylization_Cpp/meshes. Instructions of how to control the cubic stylization is listed on the side of the GUI.

2. Command line version

We also offer a command line version in folder cubicStylization_cmd for one to cubify shapes directly. To compile the application, please type these commands in the terminal

cd CubicStylization_Cpp/cubicStylization_cmd
mkdir build
cd build
cmake ..
make

This will create the excutable of the cubic stylization. To start the application, please run

./cubicStylization_bin [meshName] [lambda]

where the lambda parameter controls the cubeness. This command line demo will save the output OBJ file in the directory CubicStylization_Cpp/cubicStylization_cmd/. Both demos are based on the Algorithm 1 in the paper.

Please visit CubicStylization_MATLAB for a prototype implementation in MATLAB. Our code is licensed under MPL2. If any questions, please contact Hsueh-Ti Derek Liu (hsuehtil@cs.toronto.edu).

Bibtex

@article{Liu:CubicStyle:2019,
  title = {Cubic Stylization},
  author = {Hsueh-Ti Derek Liu and Alec Jacobson},
  year = {2019},
  journal = {ACM Transactions on Graphics}, 
}
You can’t perform that action at this time.