CVLplot

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Visualization
Introduced first in SolidGeometry 3.2, Creation date: 2016-12-26, Last change: 2025-09-14

plots a 2D polybool contour polygon in a 3D figure

Description

CVL is a nx3 point list with x/y/z coordinates separated by NaN NaN NaN
the function replaces the colors by the standard colors to show the separated contours

See Also: VLFLcoatPCVL , TofPCVL , VLplot , PLplot , CVLplots

Example Illustration

 missing image of CVLplot(CVL,c,w)

Syntax

h=CVLplot(CVL,[c,w])

Input Parameter

CVL: Point list of x/y coordinates nx2
c: Color and symbol of points
w: Width of the used line

Output Parameter

h: Handle to figure




Copyright 2016-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 a MATLAB function named CVLplot that visualizes 2D contour polygons in a 3D figure. It is part of the SolidGeometry library and was developed by Tim Lueth. The function takes a list of points and plots them with specified colors and line widths.

Input Parameters

Output

Algorithm Steps

  1. Initialize a color map cmap with the string 'kbgcrmy', representing different colors.
  2. Check if CVL is empty. If it is, return an empty handle.
  3. If CVL is a cell array, convert it into a single matrix NCVL by concatenating its elements, separated by NaN NaN NaN.
  4. Determine the number of separate contours in CVL using the function separateNaN.
  5. Initialize an empty array h to store figure handles.
  6. Loop through each contour:
Algorithm explaination created using ChatGPT on 2025-08-19 07:29. (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