createBody - Class: Aero.Animation
Package: Aero
Create body and its associated patches in animation
Syntax
idx = createBody(h,bodyDataSrc)
idx
= h.createBody(bodyDataSrc)
idx = createBody(h,bodyDataSrc,geometrysource)
idx
= h.createBody(bodyDataSrc,geometrysource)
Description
idx = createBody(h,bodyDataSrc) and idx
= h.createBody(bodyDataSrc) create a new body using the bodyDataSrc,
makes its patches, and adds it to the animation object h.
This command assumes a default geometry source type set to Auto.
idx = createBody(h,bodyDataSrc,geometrysource) and idx
= h.createBody(bodyDataSrc,geometrysource) create a new
body using the bodyDataSrc file, makes its patches,
and adds it to the animation object h. geometrysource is
the geometry source type for the body.
Inputs
| bodyDataSrc | Source of data for body. |
| geometrysource | Geometry source type for body: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. Default. Variable — Recognizes structures
containing fields of name, faces, vertices,
and cdata as MATLAB variables. MatFile — Recognizes .mat extensions
as MAT-files. Ac3d — Recognizes .ac extensions
as Ac3d files. Custom — Recognizes custom
extensions.
|
Outputs
| idx | Index of the body to be created. |
Examples
Create a body for the animation object, h.
Use the Ac3d format data source pa24-250_orange.ac,
for the body.
h = Aero.Animation;
idx1 = h.createBody('pa24-250_orange.ac','Ac3d');
 | correctairspeed | | datcomimport |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit