返回排行榜

ranahanocka/point2mesh

Python

Reconstruct Watertight Meshes from Point Clouds [SIGGRAPH 2020]

3d-graphicsdeep-learningmesh-processingpointcloudpytorchreconstruction
Star 增长趋势
Star
1.2k
Forks
135
周增长
Issues
23
5001k
2020年5月2022年5月2024年6月2026年7月
制品库PyPIpip install point2mesh
README



Point2Mesh in PyTorch

SIGGRAPH 2020 [Paper] [Project Page]

Point2Mesh is a technique for reconstructing a surface mesh from an input point cloud. This approach "learns" from a single object, by optimizing the weights of a CNN to deform some initial mesh to shrink-wrap the input point cloud. The argument for going this route is: since the (local) convolutional kernels are optimized globally across the entire shape, this encourages local-scale geometric self-similarity across the reconstructed shape surface.


The code was written by Rana Hanocka and Gal Metzer.

Getting Started

Installation

  • Clone this repo:
git clone https://github.com/ranahanocka/point2mesh.git
cd point2mesh

Setup Conda Environment

  • Relies on PyTorch version 1.4 (or 1.5) and PyTorch3D version 0.2.0.
    Install via conda environment conda env create -f environment.yml (creates an environment called point2mesh)

Install "Manifold" Software

This code relies on the Robust Watertight Manifold Software. First cd into the location you wish to install the software. For example, we used cd ~/code. Then follow the installation instructions in the Watertight README. If you installed Manifold in a different path than ~/code/Manifold/build, please update options.py accordingly (see this line)

Running Examples

Get Data

Download our example data

bash ./scripts/get_data.sh

Running Reconstruction

First, if using conda env first activate env e.g. source activate point2mesh. All the scripts can be found in ./scripts/examples. Here are a few examples:

Giraffe

bash ./scripts/examples/giraffe.sh

Bull

bash ./scripts/examples/bull.sh

Tiki

bash ./scripts/examples/tiki.sh

Noisy Guitar

bash ./scripts/examples/noisy_guitar.sh

... and more.

All the examples

To run all the examples in this repo:

bash ./scripts/run_all_examples.sh

Running different Examples

You should provide an initial mesh file. If the shape has genus 0, you can use the convex hull script provided in ./scripts/process_data/convex_hull.py

Citation

If you find this code useful, please consider citing our paper

@article{Hanocka2020p2m,
  title = {Point2Mesh: A Self-Prior for Deformable Meshes},
  author = {Hanocka, Rana and Metzer, Gal and Giryes, Raja and Cohen-Or, Daniel},
  year = {2020},
  issue_date = {July 2020}, 
  publisher = {Association for Computing Machinery}, 
  volume = {39}, 
  number = {4}, 
  issn = {0730-0301},
  url = {https://doi.org/10.1145/3386569.3392415},
  doi = {10.1145/3386569.3392415},
  journal = {ACM Trans. Graph.}, 
}

Questions / Issues

If you have questions or issues running this code, please open an issue.

相关仓库
ssloy/tinyrenderer

A brief computer graphics / rendering course

C++Otheropenglc-plus-plus
haqr.eu/tinyrenderer/
23.9k2.3k
google/filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2

C++Apache License 2.0pbrgraphics
google.github.io/filament/
20.3k2.2k
lettier/3d-game-shaders-for-beginners

🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.

C++shaders3d
lettier.github.io/3d-game-shaders-for-beginners/index.html
19.8k1.5k
terkelg/awesome-creative-coding

Creative Coding: Generative Art, Data visualization, Interaction Design, Resources.

HTMLawesomecreative-coding
15.1k963
nerfstudio-project/nerfstudio

A collaboration friendly studio for NeRFs

PythonPyPIApache License 2.0nerfpytorch
docs.nerf.studio
11.8k1.7k
openscad/openscad

OpenSCAD - The Programmers Solid 3D CAD Modeller

C++Other3d-modelsdxf-files
openscad.org
9.8k1.6k
o3de/o3de

Open 3D Engine (O3DE) is an Apache 2.0-licensed multi-platform 3D engine that enables developers and content creators to build AAA games, cinema-quality 3D worlds, and high-fidelity simulations without any fees or commercial obligations.

C++Other3d-graphics-engine3d-graphics
o3de.org
9.5k2.5k
google/draco

Draco is a library for compressing and decompressing 3D geometric meshes and point clouds. It is intended to improve the storage and transmission of 3D graphics.

C++Apache License 2.0point-cloud3d-graphics
google.github.io/draco/
7.4k1.1k
ssloy/tinyraytracer

A brief computer graphics / rendering course

C++c-plus-plusgraphics
github.com/ssloy/tinyraytracer/wiki
5.3k351
urho3d/urho3d

Game engine

C++MIT Licensegame-engineurho3d
urho3d.github.io
4.8k1k
f3d-app/f3d

Fast and minimalist 3D viewer.

C++BSD 3-Clause "New" or "Revised" Licensestl-viewergltf-viewer
f3d.app
4.6k436
Yochengliu/awesome-point-cloud-analysis

A list of papers and datasets about point cloud analysis (processing)

3d-graphics3d-reconstruction
4.2k931