ZPR (.zpr)

  • Export supports Version 1 of the ZPR format.

BackgroundBackground

    ZPrint CAD format.
    Used with Z Corporation 3D printers.
    Native format of the ZEdit and ZPrint applications.
    Developed by Z Corporation.
    Stores a physical 3D model and color information.
    Binary format.

Import and ExportImport and Export

  • Export["file.zpr",expr] exports a 3D object to a ZPR file.
  • Export["file.zpr",Graphics3D[]] creates a ZPR file representing a solid physical model.
  • The actual physical size of the object described in the ZPR file is typically determined at print time.
  • Export["file.zpr",expr,elem] creates a ZPR file by treating expr as specifying element elem.
  • Export["file.zpr",{expr1,expr2,},{{elem1,elem2,}}] treats each as specifying the corresponding .
  • Export["file.zpr",expr,opt1->val1,] exports expr with the specified option elements taken to have the specified values.
  • Export["file.zpr",{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 ZPR format.

ElementsElements

  • Data representation elements:
  • "Graphics3D"exports a Graphics3D object to ZPR
    "GraphicsComplex"exports a GraphicsComplex object
    "PolygonData"the polygon elements in indexed form
    "PolygonObjects"list of Polygon primitives given in absolute coordinates
    "VertexColors"colors associated with each vertex, given as a list of color primitives
    "VertexData"list of vertex coordinates
  • Export uses the Graphics3D element by default.

OptionsOptions

  • Advanced option:
  • "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 ZPR 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 ZPR.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Use RegionPlot3D to compute a solid 3D geometry:

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

Export it to the ZPR format:

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

Export inline 3D graphics:

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