Path: AerospaceUtils/CAD
% Draw the spacecraft CAD model using patches.
Handles truss or line components. The model can be scaled up or
exploded by passing in the appropriate factor.
Type DrawSpacecraftPatches for demo.
Since version 9.
--------------------------------------------------------------------------
Form:
[h, vMinS, vMaxS] = DrawSpacecraftPatches( hAxis, g, B0, r0,
ambientStrength, scale, explode )
DrawSpacecraftPatches( h, g, [], [], ambientStrength, scale, explode )
--------------------------------------------------------------------------
------
Inputs
------
hAxis (1,1) or (:) Handle to the axes, or to the patches for a redraw
g (.) CAD model
B0 (3,3) Rotation matrix
r0 (3,1) Initial position
ambientStrength (1,1) Ambient light strength
scale (1,1) Scale, default 1
explode (1,1) Explode factor, default 1
-------
Outputs
-------
h (:) Handles to the patch objects
vMinS (3) Minimum limits on axes
vMaxS (3) Maximum limits on axes
--------------------------------------------------------------------------
AerospaceUtils: CAD/BHinge SC: SCModels/SCForImaging Common: General/IsValidField Common: Graphics/NewFig Common: Quaternion/AU2Q Common: Quaternion/Q2Mat
Back to the AerospaceUtils Module page