reshape error in an .stl writer?

1 view (last 30 days)
Nicholas Lopez
Nicholas Lopez on 4 Mar 2015
Commented: Jan on 4 Mar 2015
So i've used an function, stlread, to import an .stl files information (faces, vertices, and normals) into matlab and am now trying to export them as an .stl. The problem is that the function I'm using to take the faces and vertices and write them to an stl file has this line of code: facets = reshape(facets(:,ceil(faces)'), 3, 3, []); which doesn't like that faces is an array of non integers. However, that's the array that the .stl reader outputs. Here's the stl reader: http://www.mathworks.com/matlabcentral/fileexchange/6678-stlread and here's the .stl writer: http://www.mathworks.com/matlabcentral/fileexchange/20922-stlwrite-write-binary-or-ascii-stl-file and help is greatly appreciated! Thank you very much!
  1 Comment
Jan
Jan on 4 Mar 2015
Please explain, why you assume that the program "doesn't like that faces is an array of non integers".

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!