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

Parameters

Options

Description

Examples

Compatibility

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.

stlFileTools:-JoinPathexample/dodecahedron.stl,base=datadir

stl/maple/cbat/active/268316/data/example/dodecahedron.stl

(1)

plottools:-importplotstl

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

gearFileTools:-JoinPathexample/gear.ply,base=datadir

gear/maple/cbat/active/268316/data/example/gear.ply

(2)

plottools:-importplotgear

Import a spacecraft model encoded in BYU object format.

byuFileTools:-JoinPathexample/shuttle.byu,base=datadir:

plottools:-importplotbyu,format=BYU

Import a stellated polyhedron encoded in PLY format.

stellatedFileTools:-JoinPathexample/stellated.ply,base=datadir:

plottools:-importplotstellated,format=PLY

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

Formats

Import

plots:-surfdata

plottools:-exportplot