Skip to content

This is a tool for voxelizing ply mesh with color informations.

Notifications You must be signed in to change notification settings

hychiang-git/mesh2color_voxel

 
 

Repository files navigation

Convert Mesh to Color Voxel

Take .ply mesh format as input, convert it into voxel with color (rgba).

Requirement

  • c++11: for the package tinyply.
  • numpy

Usage

Take the largest face inside the cube (voxel) to represent to color.

make MAX
./mesh2vox_max [input ply file] // output file is .dat

Take weighted mean (by area size of faces) for the color of the voxel.

make MEAN
./mesh2vox_mean [input ply file] // output file is .dat

Visualization

python3 read_buffer.py // generate .ply point cloud for visualization

Use tools like meshlab to open the .ply file.

References

About

This is a tool for voxelizing ply mesh with color informations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • C++ 95.7%
  • Python 3.9%
  • Makefile 0.4%