How to | Import and Export 3D Graphics
The Wolfram Language can import and export 3D graphics in a variety of standard formats, allowing interchange with other applications. As with other 3D graphics in the Wolfram Language, imported 3D graphics can be rotated and zoomed in and out, using a mouse or other input device.
This page requires that JavaScript be enabled in your browser.
Learn how »
The Wolfram Language supports many popular file formats for 3D graphics, including the CAD-related "DXF" and LightWave 3D "LWO". As with other 3D graphics in the Wolfram Language, these imported files can be rotated with a mouse or other input device.
Import a DXF example file, rendering it as a Graphics3D object:
Import["ExampleData/helicopter.dxf.gz"]Import["ExampleData/cuboids.lwo"]The Wolfram Language also allows you to export 3D graphics for use in other programs.
Create a plot in 3D and then export it:
gr1 = Plot3D[Sin[x + y], {x, -5, 5}, {y, -5, 5}, Mesh -> None, ColorFunction -> (ColorData["DarkRainbow"][#3]&)]Export["3DPlot.wrl", gr1]Create a 3D contour plot and export it:
gr2 = ContourPlot3D[x ^ 4 + y ^ 4 + z ^ 4 - (x ^ 2 + y ^ 2 + z ^ 2) ^ 2 + 3(x ^ 2 + y ^ 2 + z ^ 2) == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Mesh -> None, ContourStyle -> Orange]Export["TestPlot3D.3ds", gr2]Export a 3D graphic imported from ExampleData:
ExampleData[{"Geometry3D", "Seashell"}]Export["Seashell.3ds", %]Once exported, you can bring 3D graphics back into the Wolfram Language.
Import the 3D graphic you just exported:
Import["Seashell.3ds"]