VLswapZY

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Spatial Relations
Introduced first in SolidGeometry 1.0, Creation date: 2012-04-14, Last change: 2025-09-14

z-axis becomes y-axis of a VL (x-rotation by +90 degree)

Description

x-rotation by -90 degree of a vertex list that [x y z] becomes [x z -y];
This very fast function is used if a 2D drawing is made in x/z and should be used in x/y.
The name could also be: VLFLrotateX270, rotate270X
Inverse procedure: VLswapYZ(VL)

See Also: VLswapYZ , VLswapXY , VLswapYX , VLswapZX , VLswapXZ , VLswapX , VLswapY , VLswapZ

Example Illustration

 missing image of VLswapZY(VL,n)

Syntax

RVL=VLswapZY(VL,[n])

Input Parameter

VL: Original vertex list
n: optional nr of repeated cylces, default is 1

Output Parameter

RVL: Rotated vertex list.




Copyright 2012-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 perform a rotation transformation on a vertex list (VL) in 3D space. The transformation specifically rotates the vertices around the x-axis by -90 degrees, effectively swapping the z-axis with the y-axis and inverting the y-axis.

Input Parameters

Output

Algorithm Steps

  1. Initialize the number of rotations, n, to 1. If a second argument is provided, set n to this value.
  2. For each rotation cycle (from 1 to n):
  3. Return the final transformed vertex list RVL.
Algorithm explaination created using ChatGPT on 2025-08-18 23:58. (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