Coder Social home page Coder Social logo

wrapwrap's Introduction

wrapwrap

Build Status

wrapwrap is the 3D Alpha Wrapping from CGAL wrapped in a simple command line application.

wankel_cad

It creates watertight and valid geometries from the input mesh. It fills holes and even simplifies geometries depending on wrapping parameters. Can be useful for CFD applications.

Also works with bad quality and missing data:

wankel_cad

More information about the algorithm and parameters can be found in CGAL's documentation.

Getting started

Windows users can download and run the binary wrapwrap.exe provided in the release. Unix (Linux/MacOS) users have to build from source.

To run the tool, type the following in the command line:

wrapwrap -i input_file.obj -alpha relative_alpha -offset relative_offset -o output_file.obj

Larger numbers result in better geometries, but with a time penalty. My suggestion is to start with around 500 for relative_alpha and 1200 for relative_offset and raise numbers until you are satisfied with the results. For quick checks and simplifications, try even lower values (e.g. 20-100 for alpha and 1000 for offset).

Supported formats: STL, OBJ, PLY, VTP, OFF.

Building from source

Dependencies

CGAL >= 5.0

Linux - Ubuntu/Debian

sudo apt-get install libcgal-dev 

Mac - Homebrew

brew install cgal

Build

With installed dependencies, clone the repo:

git clone https://github.com/ipadjen/wrapwrap.git

and build the code using cmake:

mkdir build && cd build
cmake ..
make
./wrapwrap

wrapwrap's People

Contributors

ipadjen avatar

Stargazers

 avatar  avatar Lauern avatar MIXIAOXIN_HO avatar Joel López avatar Mathias Sønderskov Schaltz avatar Zhaiyu Chen avatar Jin  Huang avatar  avatar Akshay Patil avatar

Watchers

 avatar

wrapwrap's Issues

Feature Request

Just wanted to leave this as a request

  • Progress monitor to screen

Thanks Ivan!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.