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

Exit code = 81110008 #17

Open prateekrajgautam opened 4 years ago

prateekrajgautam commented 4 years ago

what is the meaning of this error code how can we learn about this

johnyf commented 4 years ago

Please include the context in which this error code was observed. May be relevant to #16.

prateekrajgautam commented 4 years ago

I am testing https://github.com/johnyf/fig2u3d to convert Matlab figures to u3d. I have set up it with its dependencies,

Then I tested its examples, it fails to convert figures with surfaces. it works fine if there are no surfaces in the Matlab figure.

It was originally written for Matlab 2012 and I am testing it on the 2020 version few minor problems is with functions isnan.

another problem with the dependency function mesh_normals it is not returning empty matrix instead of the proper direction of normals, that I have changed/corrected.

Now it is generating the IDTF file properly but while converting it to u3d with IDTFconverter it giver error.

In the process of debugging, I find that the program to write the IDTF file from fig is not detecting surfaces or patch, they are returning empty matrix.

after running the program the command window shows

test_fig2u3d_contour_surf Warning: Axis aspect ratio unequal. Exported U3D will look different. In fig2u3d (line 187) In test_fig2u3d_contour_surf (line 32) Preprocessing surface No.1 No patch objects found. No lines found. No quivergroups found. No contourgroups found. Warning: Unequal axes data aspect ratio, to be fixed by scaling the axes. To change this behavior, edit "fix_daspect = 1;" in fig2u3d to "fix_daspect = 0;"


In fig2u3d (line 224)
In test_fig2u3d_contour_surf (line 32) 
size(cdata, 1) = #points
Number of colors: 64
Number of lines written to IDTF file: 324354
"C:\Users\Prateek\Documents\MATLAB\fig2u3d-master\idtf2u3d\bin\w32\IDTFConverter.exe" -input "C:\Users\Prateek\Documents\MATLAB\fig2u3d-master\examples\test.idtf" -output "C:\Users\Prateek\Documents\MATLAB\fig2u3d-master\examples\test.u3d"

Input file name = C:\Users\Prateek\Documents\MATLAB\fig2u3d-master\examples\test.idtf Output file name = C:\Users\Prateek\Documents\MATLAB\fig2u3d-master\examples\test.u3d Profile = 0 Scaling factor = 1.000000 Debug level = 0 Position Quality = 300 Texture Coordinate Quality = 300 Normal Quality = 300 Diffuse Color Quality = 300 Specular Color Quality = 300 Geometry Default Quality = 300 Texture Quality = 75 Animation Quality = 1000 Zero Area Faces Removal = ENABLED Zero Area Face Tolerance = 0.000012 Exclude Normals = FALSE Export Option Flags = ffff Texture size limit = 0

Exit code = 81110008

Error using idtf2u3d (line 111) IDTFConverter executable returned with error.

Error in fig2u3d (line 238) idtf2u3d(fname)

Error in test_fig2u3d_contour_surf (line 32) fig2u3d(ax, 'test')



attaching the generated IDTF file as txt
[test.idtf.txt](https://github.com/johnyf/fig2u3d/files/5190457/test.idtf.txt)
johnyf commented 4 years ago

Thank you for the information.