johnyf / fig2u3d

Export MATLAB figure as U3D file or directly to 3D interactive PDF
http://www.mathworks.com/matlabcentral/fileexchange/37640-export-figure-to-3d-interactive-pdf
BSD 2-Clause "Simplified" License
62 stars 24 forks source link

Fix surfaces with single color for all faces/vertices #13

Open adhusch opened 7 years ago

adhusch commented 7 years ago

Fix surfaces with single color for all faces/vertices that still have indexed color CData set which however is not used by Matlab due to specified single solid color. (Example: create streamtube, set FaceColor for streamtube object, Matlab plots streamtube (correctly) in the set color but fig2idtf still generates an index color stream tube cycling through the complete colormap without this fix)