EdwardSmith1884 / GEOMetrics

Repo for the paper "GEOMetrics: Exploiting Geometric Structure for Graph-Encoded Objects"
MIT License
117 stars 12 forks source link

What is function calc_surface doing? #9

Closed Zhangsihao-Yang closed 4 years ago

Zhangsihao-Yang commented 4 years ago

In the script data_prep.py, there is a function called calc_surface. What is that function doing? Also, surface_computation is also using this function. what is its function?

Zhangsihao-Yang commented 4 years ago

function surface_computation() takes a voxel as input and output the position of the voxel from 6 direction. function calc_surface() has the following procedure:

Calculate the surface position.

This function has the following procedure:

  1. Compute the voxel with 128 resolution.
  2. Use the voxel with 128 resolution to compute a water-tight 32 voxel.
  3. Project the water-tight 32 voxel to 128 degree.
  4. Curve the rough 128 voxel according to the surface computed from 128 voxel.
  5. Make the curved 128 voxel water-tight.
  6. Remove the internal of the 128 voxel.
  7. Move and scale 128 voxel according to the obj file.