Closed Zhangsihao-Yang closed 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:
- Compute the voxel with 128 resolution.
- Use the voxel with 128 resolution to compute a water-tight 32 voxel.
- Project the water-tight 32 voxel to 128 degree.
- Curve the rough 128 voxel according to the surface computed from 128 voxel.
- Make the curved 128 voxel water-tight.
- Remove the internal of the 128 voxel.
- Move and scale 128 voxel according to the obj file.
In the script
data_prep.py
, there is a function calledcalc_surface
. What is that function doing? Also,surface_computation
is also using this function. what is its function?