Path: AerospaceUtils/CAD

% Build a model of a spacecraft using repeated calls to this function.
 A GUI displays the results. It is not designed to allow you to interactively
 modify the design. With no inputs it returns a list of actions. All 'add ...'
 require data and most return an index to the new body or component(s).

 The basic structure of a script using BuildCADModel is

  kBody = BuildCADModel('add body',...)
          BuildCADModel('compute paths')      % once all bodies are added
  kComp = BuildCADModel('add component',...)
          BuildCADModel('add subsystem',...)
          BuildCADModel('set external model',g)
      g = BuildCADModel( 'get cad model' )
          BuildCADModel( 'show vehicle' )

 The mass properties for the spacecraft may either be set manually or
 computed from the mass properties of the components. To set them 
 manually, enter: 

		   BuildCADModel('set mass',mass); 

 where mass is a struct with fields mass (scalar), cM (3x1 vector) and 
 inertia (3x3 matrix). The mass properties are otherwise automatically  
 updated when the model is retrieved or saved. To command an update, enter: 

 	   BuildCADModel('update spacecraft mass properties');

 If the mass properties are set manually, they are considered "locked", 
 and they cannot be overwritten by an automatic update until they are un-
 locked. To lock or unlock the mass properties at any time, enter:

    BuildCADModel('lock mass properties');
    BuildCADModel('unlock mass properties');

 When adding components to subsystems pass in their names, as well as
 the name of the subsystem. The exact name is not required, i.e.
 'thruster' for Thruster 1, Thruster 2, etc.

    BuildCADModel('add subsystem','subsys name',{'component 1','component 2'})

 In order to perform shadowing calculations on the model, you need to
 explicitly generate the body-level lists vertices and faces after all the
 components have been added.

    BuildCADModel('create body arrays')

   action    (1,:)   Action string. These are not case sensitive.
   modifier  ()      Data for the action
   mod2      ()      Second modifier
   mod3      ()      Third modifier
   mod4      ()      Fourth modifier

   g         (.)     The CAD data structure

  See also: BuildCADModel>AddSubassembly


AerospaceUtils: CAD/BHinge
AerospaceUtils: CAD/BodyPlugIn
AerospaceUtils: CAD/ComponentPlugIn
AerospaceUtils: CAD/CreateBody
AerospaceUtils: CAD/CreateCADTable
AerospaceUtils: CAD/ExportCAD
AerospaceUtils: CAD/SpacecraftPlugIn
AerospaceUtils: Coord/QLVLH
Common: Database/Constant
Common: GUIs/MessageQueue
Common: GUIs/TabBox
Common: General/CloseFigure
Common: General/IsVersionAfter
Common: General/SaveStructure
Common: Graphics/DrawImage
Common: Graphics/Polygon
Math: Linear/DupVect
Math: Linear/Mag
Math: Linear/SkewSq
builder: Templates/HelpSystem

Back to the AerospaceUtils Module page