Path: Common/ComponentModels
% Aggregate CAD component vertices and faces. This is useful with external models with many components. Once you aggregate them you can rotate and translate the assembly. Type AggregateComponents for a demo with a Box and a Frustrum. -------------------------------------------------------------------------- Form: [v,f] = AggregateComponents(c) -------------------------------------------------------------------------- ------ Inputs ------ c (:) Data structure array of components .v (:,3) Vertices .f (:,3) Faces scale (1,1) Scale factor for the vertices ------- Outputs ------- v (:,3) Vertices, combined from the components f (:,3) Faces --------------------------------------------------------------------------
Common: ComponentModels/Box Common: ComponentModels/Frustrum Common: Graphics/DrawVertices
Back to the Common Module page