Products & Services Solutions Academia Support User Community Company

Learn more about Aerospace Toolbox   

load (Aero.Body) - Get geometry data from source

Syntax

load(h, bodyDataSrc)
h.load(bodyDataSrc)
load(h, bodyDataSrc, geometrysource)
h.load(bodyDataSrc, geometrysource)

Description

load(h, bodyDataSrc) and h.load(bodyDataSrc) load the graphics data from the body graphics file. This command assumes a default geometry source type set to Auto.

load(h, bodyDataSrc, geometrysource) and h.load(bodyDataSrc, geometrysource) load the graphics data from the body graphics file, bodyDataSrc, into the face, vertex, and color data of the animation body object h. Then, when axes ax is available, you can use this data to generate patches with generatePatches. geometrysource is the geometry source type for the body.

By default geometrysource is set to Auto, which recognizes .mat extensions as MAT-files, .ac extensions as Ac3d files, and structures containing fields of name, faces, vertices, and cdata as MATLAB variables. If you want to use alternate file extensions or file types, enter one of the following:

Examples

Load the graphic data from the graphic data file, pa24-250_orange.ac, into b.

b=Aero.Body;
b.load('pa24-250_orange.ac','Ac3d'); 

See Also

generatePatches, move, update

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS