Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Importing OBJ's and exporting .m files' topicStudent Support Forum > General > Archives > "Importing OBJ's and exporting .m files"

Help | Reply To Topic
Author Comment/Response
Dave Morris
07/23/07 6:07pm

I am trying to import obj files made in a 3d modeling program, and export them to .m files for use with the LiveGraphics3D java applet:

http://library.wolfram.com/infocenter/MathSource/947/

I am using this script:

objfile = Import["C:/Users/dave/Desktop/cube.obj"]
Export["C:/Users/dave/Desktop/cube.m", objfile]

and when I load it into the default html example file, it doesn't display anything and it does not return an error:

<HTML>
<APPLET ARCHIVE="live.jar" CODE="Live.class" WIDTH=800 HEIGHT=600 ALIGN=LEFT>
<PARAM NAME=BGCOLOR VALUE=#FFFFFF>
<PARAM NAME=MAGNIFICATION VALUE=1>
<PARAM NAME=INPUT_FILE VALUE="obj.m">
</APPLET>
</HTML>

When I take files from the Mathworld site they work fine. Is this a versioning issue or is my script incorrect?

Thanks for your help,
Dave



URL: ,
Help | Reply To Topic