Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

X3D (.x3d)

  • Export supports the X3D format Version 3.0.


    MIME type: model/x3d+xml
    Web3D geometry format.
    Used for distributing 3D models on the web and in media applications.
    XML format.
    Can store multiple geometries.
    Introduced in 2003, maintained by the Web3D Consortium.
    Successor of the VRML format.

Import and ExportImport and Export

  • Export["file.x3d",expr] exports a Graphics3D object to an X3D file.
  • Export["file.x3d",expr,elem] creates an X3D file by treating expr as specifying element elem.
  • Export["file.x3d",{expr1,expr2,},{elem1,elem2,}] treats each expri as specifying the corresponding elemi.
  • Export["file.x3d",expr,opt1->val1] exports expr with the specified option elements taken to have the specified values.
  • Export["file.x3d",{elem1->expr1,elem2->expr2,},"Rules"] uses rules to specify the elements to be exported.
  • See the reference pages for full general information on Export.
  • ExportString supports the X3D format.


  • Data representation elements:
  • "Graphics3D"X3D file containing 3D geometries, represented as a Graphics3D object
    "GraphicsComplex"list of GraphicsComplex objects, each representing a geometry stored in the file
    "LineData"lines represented as lists of indices, referencing the vertices as given by the "VertexData" element
    "LineObjects"list of Line primitives given in absolute coordinates
    "PointData"point data in indexed form
    "PointObjects"list of Point primitives given in absolute coordinates
    "PolygonData"polygon data in indexed form
    "PolygonObjects"list of Polygon primitives given in absolute coordinates
    "VertexData"list of vertex coordinates
    "VertexNormals"normal vectors corresponding to the vertices given by "VertexData"


  • Advanced options:
  • "InvertNormals"Falsewhether to invert the orientation of vertex normals
    "VerticalAxis"{0,0,1}orientation to assume for the coordinate system used in the file
  • By default, the Wolfram Language assumes that in the coordinate system used by the X3D format, the vertical axis corresponds to the third coordinate.
  • With the setting "VerticalAxis"->{0,1,0}, the Wolfram Language will apply the transformation {x,y,z}->{x,z,-y} to all graphics coordinates when exporting to X3D.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Use ParametricPlot3D to create a solid 3D geometry:

Click for copyable input

Export it to X3D:

Click for copyable input
Introduced in 2007