SGinsertJoint

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 4.1, Creation date: 2017-08-13, Last change: 2025-09-14

creates joint structures inside of a solid geometry



See Also:

Example Illustration

 missing image of SGinsertJoint(SG,T,typ,x)

Syntax

SGR=SGinsertJoint(SG,T,typ,x)

Input Parameter

SG: Solid Geometry
T: Frame for the Solid Geometry
typ: Type of joint
x: parameter set

Output Parameter

SGR:

Examples


SG=SGsample(29); SGinsertJoint(SG,TofR(rot(0,0,0),[0 +20 5]));




Copyright 2017-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, SGinsertJoint, is designed to create joint structures within a solid geometry. Below is a detailed explanation of the algorithm and its parameters.

Input Parameters

Algorithm Steps

  1. Initialize the solid geometry SG using SGsample(29).
  2. Define the transformation T using TofR with a rotation and translation vector.
  3. Set the slot width to 0.3 and overlap olap to 0.1.
  4. Calculate crosspoints using crosspointsVLFLofT to determine the intersection of the geometry with the transformation frame.
  5. Display the initial geometry using SGfigure.
  6. Create a polygon line PL based on the parameter x and the depth d.
  7. Grow the polygon line using PLgrowline with the slot width.
  8. Generate a solid geometry A from the grown polygon line using SGofCPLz.
  9. Rotate and translate A to align with the transformation T.
  10. Create a second geometry B by translating A further along the y-axis.
  11. Display the geometry A using SGfigure.
  12. Retesselate both geometries A and B to a minimum area using SGretesselateAmin.
  13. Perform boolean subtraction of A and B from the original geometry SG using SGbool.
  14. Assign the result to SGR.
  15. If no output is requested, plot the resulting geometry SGR using SGplot and set the lighting with setplotlight.
Algorithm explaination created using ChatGPT on 2025-08-19 00:57. (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