vdb_to_numpy

Tool to convert VDB grids to numpy arrays.

https://github.com/prbonn/vdb_to_numpy

Science Score: 52.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
    Organization prbonn has institutional domain (www.ipb.uni-bonn.de)
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.2%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Tool to convert VDB grids to numpy arrays.

Basic Info
  • Host: GitHub
  • Owner: PRBonn
  • License: mit
  • Language: Jupyter Notebook
  • Default Branch: main
  • Size: 382 KB
Statistics
  • Stars: 5
  • Watchers: 3
  • Forks: 4
  • Open Issues: 0
  • Releases: 0
Created about 4 years ago · Last pushed almost 3 years ago
Metadata Files
Readme License Citation

README.md

VDB to Numpy

A python utility library to convert Triangular Meshes/VDB grids into numpy arrays. This project was created to work with vdbfusion

Dependencies

Usage

With VDBFusion

The main idea of this vdb_to_numpy package was to use it with maps generated with vdbfusion. More specifically, to train some neural networks with this type of data.

To use this package in such way, you first need some VDBs, to do so, go and checkout the vdbfusion examples. This examples will spit some VDB files, that you can right away use with some of the apps on this project. There are some other experiments to checkout.

Mesh-to-sdf

If you only want to use this package to convert triangular meshes to SDF fields then you probably want to use the mesh_to_sdf docker container to convert your meshes and then runaway. If you need extra funcionallity you can clone this repo and install the tool locally and start messing around with the example apps. If not, this is the easiest entry point:

For doing so, just run this command, your current working directory will be mounted to the /models/ path in the container.

sh docker run -it --rm \ -v $(pwd):/models \ --user 1000:1000 \ ignaciovizzo/vdb_to_numpy:mesh_to_sdf \ /models/tests/test_data/bunny.ply \ --scale \ --watertight \ --mcubes

This command mounts your current working directory to the /models directory in the docker container and executes the meshtosdf.py script on the mesh file bunny.ply in the current directory.

The output of this command will be the following files:

sh ├── tests │   ├── test_data │   │   ├── bunny.ply # Input mesh, not watertigh, not to scale │   │   ├── bunny_sdf.npy # Output numpy SDF dense grid │   │   ├── bunny_sdf_mesh.ply # Output mesh, after running marching cubes

If you need extra help just:

sh docker run -it --rm ignaciovizzo/vdb_to_numpy:mesh_to_sdf --help

NOTE: I've created this repoisotry in 2021 and I'm currently not actively using it. The API is tested but use it at your own risk ;)

Owner

  • Name: Photogrammetry & Robotics Bonn
  • Login: PRBonn
  • Kind: organization
  • Email: cyrill.stachniss@igg.uni-bonn.de
  • Location: Bonn

Photogrammetry & Robotics Lab at the University of Bonn

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: Vizzo
  given-names: Ignacio
- family-names: Stachniss
  given-names: Cyrill
title: "vdb_to_numpy"
version: 0.1
date-released: 2022-04-11
url: "https://github.com/PRBonn/vdb_to_numpy"

GitHub Events

Total
  • Watch event: 1
  • Fork event: 2
Last Year
  • Watch event: 1
  • Fork event: 2

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 1
  • Total pull requests: 2
  • Average time to close issues: about 2 hours
  • Average time to close pull requests: 8 days
  • Total issue authors: 1
  • Total pull request authors: 2
  • Average comments per issue: 1.0
  • Average comments per pull request: 0.5
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • amwfarid (1)
Pull Request Authors
  • kutipense (1)
  • TrellixVulnTeam (1)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

docker/apps/Dockerfile docker
  • ignaciovizzo/vdb_to_numpy latest build
docker/builder/Dockerfile docker
  • ubuntu 20.04 build
docker-compose.yml docker
  • ignaciovizzo/vdb_to_numpy latest
  • ignaciovizzo/vdb_to_numpy mesh_to_sdf
requirements.txt pypi
  • numpy *
  • open3d *
  • scikit_image *
pyproject.toml pypi
setup.py pypi