Coder Social home page Coder Social logo

mugdxy / 3d-voronoi-gpu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xh-liu-tech/3d-voronoi-gpu

0.0 0.0 0.0 805 KB

Source code for paper "Parallel Computation of 3D Clipped Voronoi Diagrams"

License: GNU General Public License v3.0

C++ 4.86% C 3.19% Cuda 83.47% CMake 1.69% Python 6.80%

3d-voronoi-gpu's Introduction

By Xiaohan Liu, Lei Ma, Jianwei Guo, Dong-Ming Yan

Build

Prerequisites:

  • Windows 10 or Ubuntu 16.04+
  • CUDA 10.1
  • CMake

Please build our code with CMake.

For Linux, use the following steps:

mkdir build
cd build
cmake ..
make

Usage

./bin/VolumeVoronoiGPU <tet_mesh.tet/vtk> <sites_file.xyz> <nb_iter> <k (optional)>

Example:

./bin/VolumeVoronoiGPU ../data/joint.tet ../data/joint.xyz 1 0

It produces out.xyz file with barycenters per cell and record.csv file with performance data.

Arguments:

  • tet_mesh: input tetrahedral mesh file (tet or vtk)
  • sites_file: input sites file (xyz)
  • nb_iter: the number of Lloyd's iteration
  • k: use the given value if specified, else default value

Citation

If you find this work is useful for your research, please cite our paper:

@article{Liu2020Parallel,
  author={Liu, Xiaohan and Ma, Lei and Guo, Jianwei and Yan, Dong-Ming},
  journal={IEEE Transactions on Visualization and Computer Graphics}, 
  title={Parallel Computation of 3D Clipped Voronoi Diagrams}, 
  year={2020},
  volume={},
  number={},
  pages={1-1},
}

Acknowledgment

We thank Ray et al. for sharing their code.

Additional

This version is modified by MuGdxy

  1. We added some tool scripts e.g. to normalize a tetrahedra mesh manually
  2. We added some visualization tools (with Houdini)

3d-voronoi-gpu's People

Contributors

mugdxy avatar xh-liu-tech avatar

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.