Code Monkey home page Code Monkey logo

greedycut's Introduction

GreedyCut

This is a C++ implement of the following paper:

Tianyu Zhu, Chunyang Ye, Shuangming Chai, and Xiao-Ming Fu. Greedy cut construction for parameterizations. Computer Graphics Forum (Eurographics), 2020.

The code is written by Tianyu Zhu using Microsoft Visual Studio 2019 with OpenMP, and has passed the test on Windows 10, Ubuntu 18.04 and macOS 10.14.3.

External Libraries

All the required libraries are the latest versions.

Clone Repository

git clone https://github.com/Mizuki7fan/GreedyCut

Build and Run

build

cd GreedyCut

Edit CmakeLists.txt to set the solver and configuration path.

mkdir build && cd build
cmake ..

run

GreedyCut.exe <mesh> opt.txt

Arguments in opt.txt:

  • PointSampling_method: the method to find second vertex.
  • PointFinding_method: the metric of distance in PointFinding stage.
  • BanArea_Method: weather to connect local maximizer before finding second cut.
  • BanArea_Dn: the radius of forbidden region.
  • BanArea_Alpha: the threshold in dual cut strategy.
  • BanArea_Metric: the metric of distance of the radius of forbidden region.
  • BanArea_ShrinkRate: the shrink rate of radius of forbidden region.
  • Influence_Threshold: the scope of influence threshold.
  • Distortion_Threshold: the distortion threshold of filtering stage.
  • Trimming_Rate: the length threshold of add auxiliary point stage.
  • Max_AddCount: the maximum of adding auxiliary point.

example

GreedyCut.exe alien.obj opt.txt

Output Files

  • landmark.txt: the landmark find by algorithm.
  • cut.txt: the cut find by algorithm
  • cuted_mesh.obj: the open mesh cuted by the cut.

greedycut's People

Contributors

mizuki7fan avatar

Forkers

pean1128

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.