4.0

4.0 | 5 ratings Rate this file 126 downloads (last 30 days) File Size: 11.2 MB File ID: #25383

Matlab mesh to PDF with 3D interactive object

by Alexandre Gramfort

 

22 Sep 2009 (Updated 10 Jan 2010)

Code covered by the BSD License  

Export triangulated mesh into a pdf with a 3D interactive object.

Download Now | Watch this File

File Information
Description

Export triangulated mesh into a pdf with a 3D object. The matlab mesh is converted to IDTF with matlab code. The IDTF file is converted to u3d with an external binary file. The u3d file can then be embedded into a pdf with pdflatex and the movie15 package. The user can then interact with the mesh (zoom, rotate etc.) from adobe reader. The package contains demo data and example of output.

The code of the IDTF to U3D converter can be obtained at : http://sourceforge.net/projects/u3d/
or in a nicely repackaged version from http://sourceforge.net/projects/mathgl/files/
thanks to Michail Vidiassov.

The toolbox has been tested on mac intel, linux and windows.

To test run the script : demo_mesh2pdf.m

MATLAB release MATLAB 7 (R14)
Other requirements The demo script requires the pdflatex command. On windows it is assumed that you have MikTex 2.8 installed.
Zip File Content  
Other Files
license.txt,
mesh2pdf/.DS_Store,
mesh2pdf/.svn/entries,
mesh2pdf/.svn/prop-base/demo_mesh2pdf.m.svn-base,
mesh2pdf/.svn/prop-base/mesh_to_latex.m.svn-base,
mesh2pdf/.svn/prop-base/save_idtf.m.svn-base,
mesh2pdf/.svn/text-base/COPYING.svn-base,
mesh2pdf/.svn/text-base/demo_mesh2pdf.m.svn-base,
mesh2pdf/.svn/text-base/mesh_normals.m.svn-base,
mesh2pdf/.svn/text-base/mesh_to_latex.m.svn-base,
mesh2pdf/.svn/text-base/README.svn-base,
mesh2pdf/.svn/text-base/save_idtf.m.svn-base,
mesh2pdf/.svn/text-base/verbatim.m.svn-base,
mesh2pdf/bin/.DS_Store,
mesh2pdf/bin/.svn/entries,
mesh2pdf/bin/glx/.svn/entries,
mesh2pdf/bin/glx/.svn/prop-base/IDTFConverter.sh.svn-base,
mesh2pdf/bin/glx/.svn/prop-base/IDTFConverter.svn-base,
mesh2pdf/bin/glx/.svn/text-base/IDTFConverter.sh.svn-base,
mesh2pdf/bin/glx/.svn/text-base/IDTFConverter.svn-base,
mesh2pdf/bin/glx/IDTFConverter,
mesh2pdf/bin/glx/IDTFConverter.sh,
mesh2pdf/bin/glx/lib/.svn/entries,
mesh2pdf/bin/glx/lib/.svn/prop-base/libIFXCore.so.svn-base,
mesh2pdf/bin/glx/lib/.svn/text-base/libIFXCore.so.svn-base,
mesh2pdf/bin/glx/lib/libIFXCore.so,
mesh2pdf/bin/glx/lib/u3d/.svn/entries,
mesh2pdf/bin/glx/lib/u3d/.svn/prop-base/libIFXExporting.so.svn-base,
mesh2pdf/bin/glx/lib/u3d/.svn/prop-base/libIFXImporting.so.svn-base,
mesh2pdf/bin/glx/lib/u3d/.svn/prop-base/libIFXRendering.so.svn-base,
mesh2pdf/bin/glx/lib/u3d/.svn/prop-base/libIFXScheduling.so.svn-base,
mesh2pdf/bin/glx/lib/u3d/.svn/text-base/libIFXExporting.so.svn-base,
mesh2pdf/bin/glx/lib/u3d/.svn/text-base/libIFXImporting.so.svn-base,
mesh2pdf/bin/glx/lib/u3d/.svn/text-base/libIFXRendering.so.svn-base,
mesh2pdf/bin/glx/lib/u3d/.svn/text-base/libIFXScheduling.so.svn-base,
mesh2pdf/bin/glx/lib/u3d/libIFXExporting.so,
mesh2pdf/bin/glx/lib/u3d/libIFXImporting.so,
mesh2pdf/bin/glx/lib/u3d/libIFXRendering.so,
mesh2pdf/bin/glx/lib/u3d/libIFXScheduling.so,
mesh2pdf/bin/maci/.svn/entries,
mesh2pdf/bin/maci/.svn/prop-base/HelloWorld.svn-base,
mesh2pdf/bin/maci/.svn/prop-base/IDTFConverter.svn-base,
mesh2pdf/bin/maci/.svn/prop-base/IDTFGen.svn-base,
mesh2pdf/bin/maci/.svn/text-base/HelloWorld.svn-base,
mesh2pdf/bin/maci/.svn/text-base/IDTFConverter.svn-base,
mesh2pdf/bin/maci/.svn/text-base/IDTFGen.svn-base,
mesh2pdf/bin/maci/HelloWorld,
mesh2pdf/bin/maci/IDTFConverter,
mesh2pdf/bin/maci/IDTFGen,
mesh2pdf/bin/maci/libIFXCore.so,
mesh2pdf/bin/maci/libIFXCoreStatic.a,
mesh2pdf/bin/maci/libIFXExporting.so,
mesh2pdf/bin/maci/libIFXImporting.so,
mesh2pdf/bin/maci/libIFXScheduling.so,
mesh2pdf/bin/w32/.DS_Store,
mesh2pdf/bin/w32/.svn/entries,
mesh2pdf/bin/w32/.svn/prop-base/IDTFConverter.exe.svn-base,
mesh2pdf/bin/w32/.svn/prop-base/IDTFExporter.dle.svn-base,
mesh2pdf/bin/w32/.svn/prop-base/IFXCore.dll.svn-base,
mesh2pdf/bin/w32/.svn/text-base/IDTFConverter.exe.svn-base,
mesh2pdf/bin/w32/.svn/text-base/IDTFExporter.dle.svn-base,
mesh2pdf/bin/w32/.svn/text-base/IFXCore.dll.svn-base,
mesh2pdf/bin/w32/IDTFConverter.exe,
mesh2pdf/bin/w32/IDTFExporter.dle,
mesh2pdf/bin/w32/IFXCore.dll,
mesh2pdf/bin/w32/Plugins/.svn/entries,
mesh2pdf/bin/w32/Plugins/.svn/prop-base/IFXExporting.dll.svn-base,
mesh2pdf/bin/w32/Plugins/.svn/prop-base/IFXImporting.dll.svn-base,
mesh2pdf/bin/w32/Plugins/.svn/prop-base/IFXRendering.dll.svn-base,
mesh2pdf/bin/w32/Plugins/.svn/prop-base/IFXScheduling.dll.svn-base,
mesh2pdf/bin/w32/Plugins/.svn/text-base/IFXExporting.dll.svn-base,
mesh2pdf/bin/w32/Plugins/.svn/text-base/IFXImporting.dll.svn-base,
mesh2pdf/bin/w32/Plugins/.svn/text-base/IFXRendering.dll.svn-base,
mesh2pdf/bin/w32/Plugins/.svn/text-base/IFXScheduling.dll.svn-base,
mesh2pdf/bin/w32/Plugins/IFXExporting.dll,
mesh2pdf/bin/w32/Plugins/IFXImporting.dll,
mesh2pdf/bin/w32/Plugins/IFXRendering.dll,
mesh2pdf/bin/w32/Plugins/IFXScheduling.dll,
mesh2pdf/COPYING,
mesh2pdf/demo_data/.DS_Store,
mesh2pdf/demo_data/.svn/entries,
mesh2pdf/demo_data/.svn/prop-base/data_mesh2pdf.mat.svn-base,
mesh2pdf/demo_data/.svn/text-base/data_mesh2pdf.mat.svn-base,
mesh2pdf/demo_data/data_mesh2pdf.mat,
mesh2pdf/demo_mesh2pdf.m,
mesh2pdf/mesh_normals.m,
mesh2pdf/mesh_to_latex.m,
mesh2pdf/README,
mesh2pdf/save_idtf.m,
mesh2pdf/tex/.DS_Store,
mesh2pdf/tex/.svn/entries,
mesh2pdf/tex/.svn/text-base/demo_mesh2pdf.tex.svn-base,
mesh2pdf/tex/demo_mesh2pdf.tex,
mesh2pdf/verbatim.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (8)
26 Sep 2009 Alexandre Gramfort  
28 Sep 2009 Oleg Komarov

Authors shouldn't rate their own submissions

29 Sep 2009 Cristian D

What versión of acrobat I should use? i have v8 professional and your programa doesn't work. I recive the following error:

Warning: Name is nonexistent or not a directory: C:\Program Files\MiKTeX2.8\miktex\bin.
> In path at 110
  In addpath at 87
  In demo_mesh2pdf at 21
"pdflatex.exe" no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable.

30 Sep 2009 Alexandre Gramfort

it means that the demo script cannot find the pdflatex.exe command.

On my windows I have MikTeX 2.8. So update the path in the demo script or install MikTeX 2.8

01 Oct 2009 Cristian D

Ok, i'm making some progress installing this tool. I have installed MikTex 2.8 and added '\miktex\bin' to path.
The program ask me for movie15 package.
I went to package manager of MikTex and I tried to install it. But, my work conection to internet is filtered and i can't install the package from intenet, so I tried to do it chossing the option (on MikTex) "repositories shall be installed from directory" and I select a directory where i have downloaded the movie15.zip (537kb). The aplication returns "directorie does seem to be a local package repository".
How can i install movie15 package? Have I the correct package? why MixTex Package manager doesn't recognize the zip?
Thanks.
Regards,
Cristian

01 Oct 2009 Cristian D

well....finaly it works!!!!!

To add the packages (after movie15 the application ask for others) is necessary to unpack all zips on a directory, then go to MikTex Settings and, on "root" option, add the directory where the zip were unpacked, click accept and after that the programs works great.

To read the pdf is necessary you need to have at least an acrobat 9.0...

14 Oct 2009 Stan Durrleman

Works fine. But you must run Matlab in command-line mode and check beforehand that you have the rights to run the scripts (IDTFConverter in the folder 'u3d'): chmod is your friend...

18 Jan 2010 Petr Pleyer

Hello,
3D pdf with this object looks great. I would like to apply the program on my own mesh model from Matlab. But when i changed "sample data" in demo_mesh2pdf.m and in directory, nothing has changed in the resulting pdf. What should change?

thx and sorry for my English :-)

Please login to add a comment or rating.
Updates
28 Sep 2009

- fix minor bug on windows
- removing useless files in zip

10 Jan 2010

For windows users, this version does not require anymore to have meshlab installed.

Tag Activity for this File
Tag Applied By Date/Time
mesh Alexandre Gramfort 24 Sep 2009 09:29:45
pdf Alexandre Gramfort 24 Sep 2009 09:29:45
latex Alexandre Gramfort 24 Sep 2009 09:29:46
3d Alexandre Gramfort 24 Sep 2009 09:29:46
self_rating Matt Fig 26 Sep 2009 13:19:57
autorated Oleg Komarov 28 Sep 2009 18:13:05
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com