PLsupplement

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - PL/Point Lists
Introduced first in SolidGeometry 1.0, Creation date: 2012-10-27, Last change: 2025-09-14

returns a given contour including supplemented points

Description

When a structure with a given contour is parallel projected onto the surfaces of an solid, sometimes a points of the parallel projected contour do no hit the surface. In this case a contour list has missing points given as [inf inf inf]. PLsupplement interpolates between the existing points.

Example Illustration

 missing image of PLsupplement(PL)

Syntax

[PL,nsup]=PLsupplement(PL)

Input Parameter

PL: Point list with missing points given as [inf inf inf]

Output Parameter

PL: Point list with interpolated points
nsup: Number of interpolated / supplemented points

Examples

This procedure is used in VLFLpprojectPL



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 supplement a point list (PL) with missing points, which are represented as [inf inf inf]. The function interpolates between existing points to fill in these gaps.

Input Parameters

Output Results

Algorithm Steps

  1. Check if there are at least three non-missing points in the list. If not, issue a warning, return an empty list, and set nsup to 0.
  2. Initialize variables: n (number of points in PL), k (current index), and nsup (number of supplemented points).
  3. Iterate over each point in the list using a while loop:
Algorithm explaination created using ChatGPT on 2025-08-19 07:02. (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