thanks for your quick reply. I am using the following code now:
K = minConvexHull(tmpVerts,myEPS)';
tmpInd = unique(cell2list(K));
[K, vol] = minConvexHull(tmpVerts(tmpInd,:),myEPS);
I modified your minConvexHull to pass the volume from qhull and cell2list is cell2mat essentially.
Concerning the volume: I guess it should be
abs(det(tetra) / 6)
in your meshVolume function? Otherwise, I do not get positive volumes in general.
Thanks for your sharing of this wonderful library.
I am working on draw a polyhedron, the first Brillouin Zone in Physics. Which specific function should I look in this library for my purpose?
16 Dec 2014
Exports figures nicely to a number of vector & bitmap formats.
export_fig works perfectly for small figures when I use this command: "export_fig test.pdf". However, using the same command, Matlab crashes for large figures and it gives me this error:
Exception type: Bus Error (0xa) at pc=7fff887be082
Also, I tried export_fig test.eps, but it does not even work?