importplot - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

# Online Help

###### All Products    Maple    MapleSim

plottools

 importplot
 import from geometric data file to plot

 Calling Sequence importplot(fname, opts)

Parameters

 fname - filepath 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: AMF, 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/234548/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/234548/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.
 • For more information on Maple 18 changes, see Updates in Maple 18.
 • The plottools[importplot] command was updated in Maple 2021.
 • The format option was updated in Maple 2021.

 See Also