GPLauxgridpointsCPS2

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 5.1, Creation date: 2021-12-10, Last change: 2025-09-15

creates a defined number of Gridpoints

Description

In contrast to GPLauxgridpointsCPS, this function limits the number of grid points

See Also: GPLauxgridpointsCPS

Example Illustration

 missing image of GPLauxgridpointsCPS2(CPLR,nr);

Syntax

[GPL2,d2,GPL1]=GPLauxgridpointsCPS2(CPLR,[nr]);

Input Parameter

CPLR: Contour
nr: number of points to fill in;

Output Parameter

GPL2: Grid Point list, size is smaller or equal as nr
d2: used distance
GPL1: smallest gridpoint list with more than nr points

Examples


GPLauxgridpointsCPS2(CPLsample(3),55); size(ans,1)




Copyright 2021-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

Last html export of this page out of FM database by TL: 2025-09-21