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
63 stars 25 forks source link

Pdf file created is in 2D plot and not 3D plot #19

Open Rewa616 opened 2 years ago

Rewa616 commented 2 years ago

Hi ,

I manage to run everything smoothly . However, the pdf created show the surf plot in 2D and not 3D (I couldn't rotate it)

Below is the response I got:

`Warning: Axis aspect ratio unequal. Exported U3D will look different.

In fig2u3d (line 187) In MATLABStandaloneApplication1>BeginApplication (line 215) In MATLABStandaloneApplication1 (line 19) Preprocessing surface No.1 No patch objects found. No lines found. No quivergroups found. No contourgroups found. size(cdata, 1) = #points Number of colors: 256 Number of lines written to IDTF file: 5797761 "C:\Users\er\Documents\Zemax\ZOS-API Projects\MATLABStandaloneApplication1\bin\w32\IDTFConverter.exe" -input "C:\Users\er\Documents\Zemax\ZOS-API Projects\MATLABStandaloneApplication1\Valuess.idtf" -output "C:\Users\er\Documents\Zemax\ZOS-API Projects\MATLABStandaloneApplication1\Valuess.u3d"

Input file name = C:\Users\er\Documents\Zemax\ZOS-API Projects\MATLABStandaloneApplication1\Valuess.idtf Output file name = C:\Users\er\Documents\Zemax\ZOS-API Projects\MATLABStandaloneApplication1\Valuess.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

Converting Material Resources (1) | Done Shader Resources (1) | Done Model Resources (1) | Done Nodes (1) | Done Modifiers (1) | Done Exit code = 0

The system cannot find the path specified.

ans =

 1

Warning: Orthographic projection: Camera distance to target is different from figure. Computed based on the scene bounding sphere.

In view2vws (line 86) In fig2u3d (line 242) In MATLABStandaloneApplication1>BeginApplication (line 215) In MATLABStandaloneApplication1 (line 19) Exported axes view in .vws file for LaTeX media9 package is: % File type: VWS % Version: 2012-05-11 % Created by: fig2u3d, MATLAB figure export tool by Ioannis Filippidis % Help: See LaTeX package media9 documentation by Alexander Grahn % Description: View settings file for u3d file to be included in pdf

VIEW=MATLABfig COO=75.5 60.5 0.0151644 C2C=-680.2909 -708.0679 0.1313278 ROO=93.3193 ROLL=0 ORTHO=0.0053579

PART=Mesh1
    RENDERMODE=Solid
END

END

ans =

 []

`

I couldn't determine what is the issue. Any helpful method will be very much appreciated.

Thank you

Rewa616 commented 2 years ago

@johnyf Hi , do you have any idea on this ?