plottools - Maple Programming Help

Home : Support : Online Help : Graphics : Packages : Plot Tools : plottools/importplot

plottools

 importplot
 import from geometric data file to plot

 Calling Sequence importplot(fname, opts)

Parameters

 fname - file path or URL of the data file opts - (optional) the format option as described below

Options

 • format = string
 Specifies the input format. It must correspond to one of the listed supported formats. If unspecified, then the format is inferred from the file extension of fname.

Description

 • The importplot command retrieves data from a file encoding 2-D or 3-D geometry and produces a representation of that geometry as a Maple plot.
 • All imported data produces plot structures using the CURVES, POINTS, and POLYGONS plot data formats. SUBSECTION Supported Import Formats
 • Formats supported by importplot include the following: BYU, JVX, OBJ, OFF, PLY, STL, VTK

Examples

Import a dodecahedron encoded in stereolithography (STL) format.

 > $\mathrm{stl}≔\mathrm{FileTools}:-\mathrm{JoinPath}\left(\left["example/dodecahedron.stl"\right],\mathrm{base}=\mathrm{datadir}\right)$
 ${\mathrm{stl}}{≔}{"/maple/cbat/active/147321/data/example/dodecahedron.stl"}$ (1)
 > $\mathrm{plottools}:-\mathrm{importplot}\left(\mathrm{stl}\right)$

Import a cogged gear encoded in Stanford Polygon (PLY) format.

 > $\mathrm{gear}≔\mathrm{FileTools}:-\mathrm{JoinPath}\left(\left["example/gear.ply"\right],\mathrm{base}=\mathrm{datadir}\right)$
 ${\mathrm{gear}}{≔}{"/maple/cbat/active/147321/data/example/gear.ply"}$ (2)
 > $\mathrm{plottools}:-\mathrm{importplot}\left(\mathrm{gear}\right)$

Import a spacecraft model encoded in BYU object format.

 > $\mathrm{byu}≔\mathrm{FileTools}:-\mathrm{JoinPath}\left(\left["example/shuttle.byu"\right],\mathrm{base}=\mathrm{datadir}\right):$
 > $\mathrm{plottools}:-\mathrm{importplot}\left(\mathrm{byu},\mathrm{format}="BYU"\right)$

Import a stellated polyhedron encoded in PLY format.

 > $\mathrm{stellated}≔\mathrm{FileTools}:-\mathrm{JoinPath}\left(\left["example/stellated.ply"\right],\mathrm{base}=\mathrm{datadir}\right):$
 > $\mathrm{plottools}:-\mathrm{importplot}\left(\mathrm{stellated},\mathrm{format}="PLY"\right)$

Compatibility

 • The plottools[importplot] command was introduced in Maple 18.