SGstretching

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SG/Solids
Introduced first in SolidGeometry 2.1, Creation date: 2015-02-20, Last change: 2025-09-14

cuts a solid geometry in x and stretches in x



See Also:

Example Illustration

 missing image of SGstretching(A,dx,xlim)

Syntax

A=SGstretching(A,dx,xlim)

Input Parameter

A: Solid geometry
dx: add d to all x-coodinates
xlim: for all x-coordinates > xlim

Output Parameter

A: Stretched solid geoemtry




Copyright 2015-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 algorithm is designed to modify a solid geometry by stretching it along the x-axis. The function takes three input parameters and returns a modified version of the input geometry.

Input Parameters

Output

Algorithm Steps

  1. The function begins by identifying all vertices in the solid geometry A where the x-coordinate is greater than or equal to the specified xlim value.
  2. For these identified vertices, the x-coordinate is increased by the value of dx.
  3. If no output argument is specified (nargout==0), the function will visualize the modified geometry using a specific view and lighting setup.

Visualization

If the function is called without an output argument, it will display the modified geometry using the following visualization settings:

Algorithm explaination created using ChatGPT on 2025-08-18 21:55. (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