Skip to content

Instantly share code, notes, and snippets.

View hzxie's full-sized avatar

Haozhe Xie hzxie

View GitHub Profile
@hzxie
hzxie / octree2binvox.py
Last active March 24, 2020 07:01
Convert Octree Volumes to Regular Volumes
# -*- coding: utf-8 -*-
# @Author: hzxie
# @Date: 2019-10-07 20:20:08
# @Last Modified by: hzxie
# @Last Modified time: 2019-10-07 20:27:23
# @Email: cshzxie@gmail.com
import binvox_rw
import math
import numpy as np
@hzxie
hzxie / PointCloud2Voxel.py
Created September 22, 2018 06:34
Convert Point Cloud to Voxels
import numpy as np
import pandas as pd
from pyntcloud import PyntCloud
import binvox_rw
cloud = PyntCloud.from_file("test/00000.txt",
sep=" ",
header=0,