I have a array of points (Line1OuterAll) I'd like to use to generate a surface with STL extension.
I tried to use stlwrite using stlwrite('test.stl',Line1OuterAll(:,1),Line1OuterAll(:,2),Line1OuterAll(:,3),'mode','ascii') but it gives me this error:
Warning: Duplicate data points have been detected and removed.
Some point indices will not be referenced by the triangulation.
> In stlwrite>parseInputs (line 175)
In stlwrite (line 76)
Warning from stlwrite>parseInputs (line 175)
faces = delaunay(X,Y);
Am I doing something wrong?