• Stars
    star
    604
  • Rank 74,189 (Top 2 %)
  • Language
    C++
  • License
    Other
  • Created over 6 years ago
  • Updated over 4 years ago

Reviews

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

Repository Details

Convert any Triangle Mesh to Watertight Manifold

Watertight Manifold

Source code for the paper:

Huang, Jingwei, Hao Su, and Leonidas Guibas. Robust Watertight Manifold Surface Generation Method for ShapeNet Models., arXiv preprint arXiv:1802.01698 (2018).

News!

An advanced version has been released in this new repo.

ShapeNet Manifold Dataset

We prepare the manifold data for 13 categories from ShapeNetCore. You can download them by running the following script.

wget http://download.cs.stanford.edu/orion/Shapenet_Manifold/categories.txt
wget -i categories.txt

Install and Run

For Linux and Mac users, run sh demo.sh to build and try the manifold example.

Install

git clone --recursive -j8 git://github.com/hjwdzh/Manifold
cd Manifold
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make

Manifold Software

We take a triangle mesh "input.obj" and generate a manifold "output.obj". The resolution is the number of leaf nodes of octree. The face number increases linearly with the resolution.

./manifold input.obj output.obj [resolution (Default 20000)]

Simplify Algorithm

Our manifold software generates uniform manifold. For efficiency purpose, a mesh simplification can be used.

./simplify -i input.obj -o output.obj [-m] [-f face_num] [-c max_cost] [-r max_ratio]

Where:

  -m            Turn on manifold check, we don't output model if check fails
  -f face_num   Add termination condition when current_face_num <= face_num
  -c max_cost   Add termination condition when quadric error >= max_cost
  -r max_ratio  Add termination condition when current_face_num / origin_face_num <= max_ratio

Example:

./simplify -i input.obj -o output.obj -m -c 1e-2 -f 10000 -r 0.2

Authors

Β© Jingwei Huang, Stanford University

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

@article{huang2018robust,
  title={Robust Watertight Manifold Surface Generation Method for ShapeNet Models},
  author={Huang, Jingwei and Su, Hao and Guibas, Leonidas},
  journal={arXiv preprint arXiv:1802.01698},
  year={2018}
}

More Repositories

1

QuadriFlow

QuadriFlow: A Scalable and Robust Method for Quadrangulation
C++
670
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