plottools
importplot
import from geometric data file to plot
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
importplot(fname, opts)
fname
-
filepath or URL of the data file
opts
(optional) the format option as described below
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.
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
Import a dodecahedron encoded in stereolithography (STL) format.
stl≔FileTools:-JoinPath⁡example/dodecahedron.stl,base=datadir
stl≔/maple/cbat/active/268316/data/example/dodecahedron.stl
plottools:-importplot⁡stl
Import a cogged gear encoded in Stanford Polygon (PLY) format.
gear≔FileTools:-JoinPath⁡example/gear.ply,base=datadir
gear≔/maple/cbat/active/268316/data/example/gear.ply
plottools:-importplot⁡gear
Import a spacecraft model encoded in BYU object format.
byu≔FileTools:-JoinPath⁡example/shuttle.byu,base=datadir:
plottools:-importplot⁡byu,format=BYU
Import a stellated polyhedron encoded in PLY format.
stellated≔FileTools:-JoinPath⁡example/stellated.ply,base=datadir:
plottools:-importplot⁡stellated,format=PLY
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
Formats
Import
plots:-surfdata
plottools:-exportplot
Download Help Document