Drawing 3D sphere in C/C++

if I get it right you want to render all surface Voxels of sphere The brute force is O(R^3). If you just project rays from plane and compute the 3-th coordinate then you get O(R^2) but to make sure that no Voxels are missing you have to do this projection from all 3 planes which … Read more

Representing voxels with matplotlib

A. Using voxels From matplotlib 2.1 on, there is a Axes3D.voxels function available, which pretty much does what’s asked for here. It is however not very easily customized to different sizes, positions or colors. from mpl_toolkits.mplot3d import Axes3D import numpy as np import matplotlib.pyplot as plt N1 = 10 N2 = 10 N3 = 10 … Read more