Rounded Corner Box
A Single C++ Header Generating 3D Triangulated Rounded-Corner Boxes
This is an Eigen-based, header-only library for generating a 3D triangulated mesh of rounded-corner box centered at zero point. The input parameters to the class are number of subdivision, size of box, radius of the rounded corner. The output are the vertices, normal vectors and indices of the rounded-corner box.
Dependency: Eigen (http://eigen.tuxfamily.org/)
Usage: Include RoundCornerBox.hpp inside your code. See main.cpp for an example.
To compile the example: mkdir build && cd build && cmake .. && make
To run the example: cd RoundCornerBox && ./RoundCornerBox 4 1.0 0.5 0.2 0.1 cornerbox.obj