p3ofn

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 1.0, Creation date: 2012-10-31, Last change: 2025-09-14

returns 3 numbers for a given number n

Description

Auxiliary function to select three indices from a contour list, to define vertices for calculating a HT matrix, used in TofPCVL.

Example Illustration

 missing image of p3ofn(n)

Syntax

[a,b,c]=p3ofn(n)

Input Parameter

n: number b

Output Parameter

a: 1
b: 1*n/3
c: 2*n/3




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 function, p3ofn, is designed to return three indices based on a given number n. It is part of the SG-Library and was created by Tim Lueth. The function is used to select three indices from a contour list to define vertices for calculating a homogeneous transformation (HT) matrix, which is used in TofPCVL.

Input Parameters

Output Results

Algorithm Details

The function begins by setting a default value for solut to 0. If a second argument is provided and is not empty, solut is set to this value.

Switch Conditions

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