PLBezierC

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - PL/Point Lists
Introduced first in SolidGeometry 5.2, Creation date: 2022-03-03, Last change: 2025-09-15

Bezier splines for open point list

Description

exactly the same as VLBezierC but handles the 2D output

See Also: VLBezierC

Example Illustration

 missing image of PLBezierC(PL,k)

Syntax

PL=PLBezierC(PL,[k])

Input Parameter

PL: 2D Point list
k: number of points of the Bezier curve; default is size(PL,1)

Output Parameter

PL: 2D Point list

Examples


PLBezierC(PLsample(6),12)




Copyright 2022-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, PLBezierC, is designed to generate Bezier splines for a given open point list in 2D. It is part of the SolidGeometry library and was introduced in version 5.2. The function is similar to VLBezierC but specifically handles 2D output.

Input Parameters

Output Results

Algorithm Steps

  1. The function begins by calling VLBezierC with the input point list PL and any additional arguments provided in varargin. This function generates a Bezier curve based on the input points.
  2. The result from VLBezierC is stored in PLN.
  3. The function then extracts the first two columns of PLN to ensure the output is a 2D point list.
  4. If no output argument is specified (i.e., nargout==0), the function will plot the original point list PL in red and the generated Bezier curve PLN in green using the SGfigure and PLplot functions.

Example Usage

An example call to the function is PLBezierC(PLsample(6),12), which generates a Bezier curve with 12 points from a sample point list of 6 points.

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