Main Content

read

Class: Aero.Geometry
Namespace: Aero

Read geometry data using current reader

Syntax

read(h,source)

Description

read(h,source) reads the geometry data of the geometry object h from data source source.

Input Arguments

expand all

Aerospace geometry object, specified as an Aero.Geometry object.

Geometry source, specified as one of:

  • 'Auto' — Default reader

  • 'Variable' — MATLAB® variable of type structure that contains the fields name, faces, vertices, and cdata that define the geometry in the Handle Graphics® patches

  • 'MatFile' — MAT-file reader

  • 'Ac3dFile' — AC3D file reader

  • 'Custom' — Custom reader

Examples

expand all

Read geometry data from the AC3D file pa24-250_orange.ac.

g = Aero.Geometry;
g.Source = 'Ac3d';
g.read('pa24-250_orange.ac');
g
g
g = 
  Geometry with properties:

                   Name: 'pa24-250_orange'
                 Source: 'Ac3d'
                 Reader: @ReadAc3dFile
    FaceVertexColorData: [1×97 struct]

Version History

Introduced in R2007a