by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SimMechanics
Introduced first in SolidGeometry 3.6, Creation date: 2017-03-17, Last change: 2025-09-14
See Also: SGmodelLink
, SGmodelJoint
, SGmodelNode
, SGmodelLink3
, SGmodelKeyhole
, SGmodelLink1
, SGmodelLink2
SG=SGmodelMass([R])
R: | Radius |
SG: | Solid geometry |
This function, SGmodelMass, is designed to create a mass point with two frames using the SG-Library. It is a part of the SIMMECHANICS INTERFACE and was developed by Tim Lueth.
R to 1. If an argument is provided and is not empty, set R to the provided value.R using the function SGsphere(R) and assign it to SG.[R*2, R*2, R*2] using the function SGbox and assign it to SG.SG to magenta ('m').SG for frame 'B' using the function SGTset with an identity matrix and a zero translation vector.SG for frame 'F' using the function SGTset with an identity matrix and a zero translation vector.nargout==0), plot the solid geometry using SGfigure, set the title using titleofcaller, and view the plot from a specific angle using view(-30,30). Finally, plot the solid geometry with SGTplot(SG).