A Single C++ Header Generating 3D Triangulated Rounded Corner Box
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
RoundCornerBox first commit Dec 28, 2016
cmake first commit Dec 28, 2016
CMakeLists.txt first commit Dec 28, 2016
LICENSE Initial commit Dec 28, 2016
README.md fix typo in Readme Dec 28, 2016

README.md

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.

alt tag

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