I try several methods to write an stl file based on the ellipsoid geometry.
But I haven't find way to successfully do it.
Following is my code
clear clcclose all[x, y, z] = ellipsoid(0,0,0,5.9,3.25,3.25,30);s=surf(x,y,z)p=surf2patch(s)%Extract faces and vertices from structure p
pf=p.facespv=p.verticestr=triangulation(pf,pv) stlwrite(tr,'ell.stl')
The message ''Tetrahedron triangulation is not supported.'' appears, I know I could use ''boundaryFacets'' command to solve this problem, but I don't know how to create an alphaShape of ellipsoid.
Could anyone gives me a hint?
Best Answer