Skip to content

A Single C++ Header Generating 3D Triangulated Rounded Corner Box

License

Notifications You must be signed in to change notification settings

nepluno/RoundCornerBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Single C++ Header Generating 3D Triangulated Rounded Corner Box

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published