Main Content

generatePatches

Class: Aero.Body
Namespace: Aero

Generate patches for body with loaded face, vertex, and color data

Syntax

generatePatches(h,ax)

Description

generatePatches(h,ax) generates patches for the animation body object h using the loaded face, vertex, and color data in axes object, ax.

Input Arguments

expand all

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

Axes object.

Examples

expand all

Generate patches for the body object b using the axes, ax.

b=Aero.Body;
b.load('pa24-250_orange.ac','Ac3d'); 
f = figure;
ax = axes;
b.generatePatches(ax);

Figure contains an axes object. The axes object contains 97 objects of type patch.

Version History

Introduced in R2007a