Diff of /theonewith_voxels.asv [000000] .. [f949a5]

Switch to unified view

a b/theonewith_voxels.asv
1
clear all; close all; clc;
2
3
% numbers are arbitrary
4
cube=zeros(11,11,11);
5
cube(3:9,3:9,3:9)=5; % Create a cube inside the region
6
7
% Boring: faces of the cube are a different color.
8
cube(3:9,3:9,3)=2;
9
cube(3:9,3:9,9)=2;
10
cube(3:9,3,3:9)=2;
11
cube(3:9,9,3:9)=2;
12
cube(3,3:9,3:9)=2;
13
cube(9,3:9,3:9)=2;
14
15
H=vol3d('Cdata',cube,'alpha',cube/5) %what is alpha?
16
figure;
17
plot3(H.cdata(:,:),H.cdata,H.cdata);
18