CVLzsweep

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CVL/Closed Vertex Lists
Introduced first in SolidGeometry 4.4, Creation date: 2018-11-13, Last change: 2025-09-14

returns a swept CVL z Contour and a 2.5d solid



See Also: CVLzaddauxpoints , CVLzofSGsliceauto , CVLzplotasCPS , CVLzplotui , CVLzremovearea , CVLzseparate

Example Illustration

 missing image of CVLzsweep(CVL,)

Syntax

CVLn=CVLzsweep(CVL,[])

Input Parameter

CVL: CVL sliced Contour

Output Parameter

CVLn: Swept CVLz

Examples


A=SGcmdsample('3156'); CVLzofSGsliceauto(A); CVL=ans;
CVLzsweep(CVL,pi/2)




Copyright 2018-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 z-sweep on a given Contour Vertex List (CVL) and return a swept CVLz contour along with a 2.5D solid representation.

Input Parameters

Output Results

Algorithm Steps

  1. Extract unique z-values from the CVL using the unique function and remove NaN values with woNaN.
  2. Initialize variables: n for the number of unique z-values, olap for overlap, and empty arrays CVLn and SG.
  3. Iterate over each unique z-value:
  4. Remove the last NaN separator from CVLn.
  5. If no output arguments are specified, plot the results using SGfigure, CVLplot, and SGplot with lighting adjustments.
Algorithm explaination created using ChatGPT on 2025-08-19 00:13. (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