SGdummyRjoint

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Modeling function
Introduced first in SolidGeometry 5.0, Creation date: 2020-10-04, Last change: 2025-09-14

creates a simple geometry to better imagine a rotating joint

Description

For w==0, frame C corresponds to eye(4) or T

See Also: SGdesignDIN912DIN985

Example Illustration

 missing image of SGdummyRjoint(R,H,w,T)

Syntax

SG=SGdummyRjoint([R,H,w,T])

Input Parameter

R: [Ro Ri]
H: [Hi Ho]
w: rotation angle; default is 0
T: Transformation matrix; default is eye(4)

Output Parameter

SG: SOlid Geometry of a dummy revolute joint

Examples


SGdummyRjoint




Copyright 2020-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This function, SGdummyRjoint, creates a simple geometry to visualize a rotating joint. It is part of the SolidGeometry library and was introduced in version 5.0. The function takes several input parameters and returns a solid geometry object.

Input Parameters

Output

Algorithm Steps

  1. Retrieve the input parameters using getfuncparams. If the number of elements in R or H is 1, set default values for the missing elements.
  2. Create a solid geometry SGA using SGofCPLz with a circle of radius R(2) and height H(1).
  3. Create another solid geometry SG2 using SGofCPLz with a circle of radius R(1) and height H(2). Align SG2 to the bottom of SGA using SGtransrelSG.
  4. Color the faces of SGA red and SG2 green using SGcolorfaces.
  5. Combine SGA and SG2 into a cell array.
  6. Create a mirrored version SGB of SGA by rotating it 180 degrees around the y-axis using SGtransrelSG and color its faces green.
  7. Combine SGA and SGB into a cell array and convert it into a single solid geometry using SGofSG.
  8. Retain specific fields ('VL', 'FL', 'FC') in the solid geometry using retainfields.
  9. Set the transformation matrix of the solid geometry to the identity matrix using SGTset. If a transformation matrix T is provided, apply it using SGtransT.
  10. If no output is requested, plot the solid geometry using SGfigure and SGTplotalpha with a transparency of 0.5.
Algorithm explaination created using ChatGPT on 2025-08-19 07:30. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21