ASCII STL to image
Show older comments
I have been trying to use import_stl_fast to create an image (<http://www.cs.technion.ac.il/~gershon/EscherForReal/PenroseII.gif>) from an STL file (<http://www.cs.technion.ac.il/~gershon/EscherForReal/PenroseTriangleStl1.zip)>.
When I try and run the below code, it fails on axis.m and also, the image generated looks nothing like the intended image.
Any help much appreciated.
fv= cell(1,3);
[fv{1},fv{2},fv{3}] = import_stl_fast(file,1);
patch(fv,'FaceColor', [0.8 0.8 1.0], ...
'EdgeColor', 'none', ...
'FaceLighting', 'gouraud', ...
'AmbientStrength', 0.15);
camlight('headlight');
material('dull');
view([-135 35]);
axis('image');
2 Comments
Geoff Hayes
on 16 Jun 2014
What is fv? How are the outputs from the import_stl_fast used in the subsequent lines of code? I think that there might be a line missing to populate fv with that data.
Matlab2010
on 16 Jun 2014
Accepted Answer
More Answers (0)
Categories
Find more on Calibrate Cameras in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!