POV (.pov)

  • Export supports the POV format Version 3.6.

BackgroundBackground

    MIME type: model/x-pov
    POV-Ray 3D scene description language and format.
    Used for storing 3D models and scene descriptions.
    Native file format of the POV-Ray raytracing software.
    POV-Ray is an acronym derived from Persistence of Vision Raytracer.
    Plain text ASCII format.
    Uses the syntax of the POV-Ray scripting language.

Import and ExportImport and Export

  • Export["file.pov",expr] exports a Graphics3D object to a POV file.
  • Export["file.pov",expr,elem] creates a POV file by treating expr as specifying element elem.
  • Export["file.pov",{expr1,expr2,},{elem1,elem2,}] treats each as specifying the corresponding .
  • Export["file.pov",expr,opt1->val1] exports expr with the specified option elements taken to have the specified values.
  • Export["file.pov",{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 POV format.

ElementsElements

  • Data representation elements:
  • "Graphics3D"POV 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 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
  • Export uses the element by default.

OptionsOptions

  • Advanced option:
  • "VerticalAxis"{0,0,1}orientation to assume for the coordinate system used in the file
    "Comments"Nonelist of comments to be embedded in the file
  • By default, the Wolfram Language assumes that in the coordinate system used by the POV format the vertical axis corresponds to the third coordinate.
  • With the setting , the Wolfram Language will apply the transformation to all graphics coordinates when exporting to POV.

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Use ParametricPlot3D to create a solid 3D geometry:

In[1]:=
Click for copyable input
Out[1]=

Export it to POV:

In[2]:=
Click for copyable input
Out[2]=

Export inline graphics to a POV file:

In[1]:=
Click for copyable input
Out[1]=

Exporting with comments:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2007
(6.0)