Code covered by the BSD License  

Highlights from
SimMechanics STL file importer

image thumbnail

SimMechanics STL file importer



MATLAB code that automatically creates SimMechanics blocks from text-based STL files.

function d = density()
% Copyright 2011 The MathWorks, Inc.

% d is a map container
% use d('iron') to get iron's density
% density in kg/m^3
  material = {'iron','plastic'};
  density  = {  7874, 1000};
  d = containers.Map(material, density);

Contact us