Main Content


Class: Aero.Body
Namespace: Aero

Get geometry data from source




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

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

Input Arguments

expand all

Aerospace body object, specified as an Aero.Body object.

Body graphics file, specified as a character vector or string.

Data Types: char | string

Geometry source type for body, specified as:

  • Auto

  • Variable

  • MatFile

  • Ac3d

  • Custom

Setting this argument to Auto recognizes .mat extensions as MAT-files, .ac extensions as Ac3d files, and structures containing fields of name, faces, vertices, and cdata as MATLAB® variables.

Setting this argument to Custom requires a custom reader function. To use this source type, first assign a custom reader function handle to the Aero.Body.Geometry.Reader property. For example, obj.Geometry.Reader = @custom_function.

Data Types: char | string


expand all

Load the graphic data from the graphic data file,, into body object, b.


Version History

Introduced in R2007a

See Also