Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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:

  • Auto

  • Variable

  • MatFile

  • Ac3d

  • Custom

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'); 

Introduced in R2007a

Was this topic helpful?