plottools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

plottools

  

importplot

  

import from geometric data file to plot

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

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 corresponding to one of the supported import 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.

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

stl/usr/local/repository/build/rdgetroll8/maple/slot0/data/example/dodecahedron.stl

(1)

plottools:-importplotstl

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

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

gear/usr/local/repository/build/rdgetroll8/maple/slot0/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.

See Also

Formats

plot/exportplot

plot/surfdata