0001
0002 sphere = sphere_tri('ico',4,4);
0003
0004 Xbound = 2;
0005 Ybound = 2;
0006 Zbound = 2;
0007
0008 for i = 1:size(sphere.vertices,1),
0009
0010 x = sphere.vertices(i,1);
0011 y = sphere.vertices(i,2);
0012 z = sphere.vertices(i,3);
0013
0014 if x > Xbound, delete_index(end) = i; end
0015 if y > Ybound, delete_index(end) = i; end
0016 if z > Zbound, delete_index(end) = i; end
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029 vertex2boxDistance = 0;
0030 vertexEdgeDistance = 0;
0031
0032 if vertex2boxDistance < vertexEdgeDistance,
0033
0034
0035 end
0036 end
0037