• Stars
    star
    670
  • Rank 67,354 (Top 2 %)
  • Language
    C++
  • License
    Other
  • Created almost 7 years ago
  • Updated almost 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

QuadriFlow: A Scalable and Robust Method for Quadrangulation

QuadriFlow: A Scalable and Robust Method for Quadrangulation

Source code for the paper:

Jingwei Huang, Yichao Zhou, Matthias Niessner, Jonathan Shewchuk and Leonidas Guibas. QuadriFlow: A Scalable and Robust Method for Quadrangulation, The Eurographics Symposium on Geometry Processing (SGP) 2018.

QuadriFlow Results

WebGL Application

Our 3D WebGL Apps for QuadriFlow are online! Without any installation, you are able to

Desktop Software

The software supports cmake build for Linux/Mac/Windows systems. For linux and mac users, run sh demo.sh to build and try the QuadriFlow example, which converts examples/Gargoyle_input.obj to examples/Gargoyle_quadriflow.obj.

Install

git clone git://github.com/hjwdzh/quadriflow
cd quadriflow
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=release
make -j

QuadriFlow Software

We take a manifold triangle mesh input.obj and generate a manifold quad mesh output.obj. The face number increases linearly with the resolution controled by the user.

./quadriflow -i input.obj -o output.obj -f [resolution]

Here, the resolution is the desired number of faces in the quad mesh.

Advanced Functions

Min-cost Flow

By default, quadriflow uses the Boykov maximum flow solver from boost because it is faster. To enable the adaptive network simplex minimum-cost flow solver, you can enable the -mcf option:

./quadriflow -mcf -i input.obj -o output.obj -f [resolution]

Sharp Preserving

By default, quadriflow does not explicitly detect and preserve the sharp edges in the model. To enable this feature, uses

./quadriflow -sharp -i input.obj -o output.obj -f [resolution]

SAT Flip Removal (Unix Only)

By default, quadriflow does not use the SAT solver to remove the flips in the integer offsets map. To remove the flips and guarantee a watertight result mesh, you can enable the SAT solver. First, make sure that minisat and timeout is properly installed under your ${PATH}. The former can be done by building 3rd/MapleCOMSPS_LRB/CMakeLists.txt and copying minisat to /usr/bin. In addition, timeout is included in coreutils. If you are using Mac, you can install it using homebrew:

brew install coreutils
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"

You can verify if those binaries are properly installed by executing

which minisat
which timeout

After that, you can enable SAT flip removal procedure by executing

./quadriflow -sat -i input.obj -o output.obj -f [resolution]

When using the SAT flip removal, we also suggest you enabling the verbose logging to understand what is going on. You can build quadriflow with the following options:

cmake .. -DCMAKE_BUILD_TYPE=release -DBUILD_LOG=ON

GUROBI Support (For Benchmark Purpose)

To use the Gurobi integer programming to solve the integer offset problem, you can build QuadriFlow with

cmake .. -DCMAKE_BUILD_TYPE=release -DBUILD_GUROBI=ON -DBUILD_LOG=ON

This override other solvers and should only be used for benchmark purpose.

External Dependencies

  • Boost
  • Eigen
  • OpenMP (optional in CMake)
  • TBB (optional in CMake)
  • GUROBI (for benchmark purpose only)

Licenses

QuadriFlow is released under MIT License. For 3rd dependencies,

  • Boost and Lemon are released under Boost Software License
  • Most part of Eigen is released under MPL2
    • Sparse Cholesky Decomposition algorithms are released under LGPL
    • To replace it using Sparse LU decomposition with a more permissive MPL2 license (a little slower), enable BUILD_FREE_LICENSE in CMake (e.g., -DBUILD_FREE_LICENSE=ON).
  • pcg32.h is released under the Apache License, Version 2.0
  • parallel_stable_sort.h is released under the MIT License

Authors

© 2018 Jingwei Huang and Yichao Zhou All Rights Reserved

IMPORTANT: If you use this software please cite the following in any resulting publication:

@article {10.1111:cgf.13498,
    journal = {Computer Graphics Forum},
    title = {{QuadriFlow: A Scalable and Robust Method for Quadrangulation}},
    author = {Huang, Jingwei and Zhou, Yichao and Niessner, Matthias and Shewchuk, Jonathan Richard and Guibas, Leonidas J.},
    year = {2018},
    publisher = {The Eurographics Association and John Wiley & Sons Ltd.},
    ISSN = {1467-8659},
    DOI = {10.1111/cgf.13498}
}

Triangle Manifold

In case you are dealing with a triangle mesh that is not a manifold, we implemented the software that converts any triangle mesh to watertight manifold. Please visit https://github.com/hjwdzh/Manifold for details.

More Repositories

1

Manifold

Convert any Triangle Mesh to Watertight Manifold
C++
604
star
2

ManifoldPlus

ManifoldPlus: A Robust and Scalable Watertight Manifold Surface Generation Method for Triangle Soups
C++
586
star
3

DeepLM

DeepLM: Large-scale Nonlinear Least Squares on Deep Learning Frameworks using Stochastic Domain Decomposition (CVPR 2021)
Python
179
star
4

AdversarialTexture

Adversarial Texture Optimization from RGB-D Scans (CVPR 2020).
Python
174
star
5

FrameNet

FrameNet: Learning Local Canonical Frames of 3D Surfaces from a Single RGB Image
Python
127
star
6

MeshODE

MeshODE: A Robust and Scalable Framework for Mesh Deformation
C++
94
star
7

TextureNet

TextureNet: Consistent Local Parametrizations for Learning from High-Resolution Signals on Meshes
C++
93
star
8

PrimitiveNet

PrimitiveNet: Primitive Instance Segmentation with Local Primitive Embedding under Adversarial Metric (ICCV 2021)
Python
62
star
9

pyRender

Lightweight Cuda Renderer with Python Wrapper.
Python
54
star
10

Fluid3D

Incompressible Smoothed Particle Hydrodynamics and Applications
C++
27
star
11

VectorGraphRenderer

A renderer that takes a triangle mesh, a camera pose and produce a SVG image or visible part of the mesh.
C++
21
star
12

CADPlaneFitting

Fit Planes for CAD models
C++
20
star
13

PrimitiveFitting

C++
18
star
14

ProcCG

Procedural city generation.
C++
12
star
15

myRaytracer

GLSL Raytracer
C++
11
star
16

ShapeAlign

AlignShape
C++
5
star
17

level-set

Create a level-set platform for simulation
C++
5
star
18

FileViewer

A image web server
Python
5
star
19

Phd-Thesis----Surface-Texture-Processing

TeX
5
star
20

Compiler

create a c compiler
C
4
star
21

PhotonGPU

cs348b
C++
3
star
22

Simulation

Simulation platform for practice and research
C++
3
star
23

hjwdzh.github.io

HTML
1
star
24

hjwdzh

1
star