CPLofVLFL

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

creates a CPL and T of a planar VL,FL

Description

Corresponding to function PLofVLFL.
if norm(ez)<1 we have a spherical surface.
Written on SY Bontekoning at Marina Panacea Palma de Mallorca


See Also: CVLofSGfi , CPLofFS

Example Illustration

 missing image of CPLofVLFL(VL,FL,fi)

Syntax

[CPL,T,ez]=CPLofVLFL(VL,FL,[fi])

Input Parameter

VL: Vertex list
FL: Facet List
fi: index of facets; default is 1:end

Output Parameter

CPL: Closed Contour List
T: Transformation Matrix
ez: ez vector

Examples


SG=SGsteepspindle([6 60 0 2],'',[0 8]); [s,ss,~,bb]=sofBB(SG);
[SGU,SGO,~,fsi]=SGcutT(SG,TofPez([0 0 0.499*(bb(5)+bb(6))],[0 0 1]));
CPLofVLFL(SGU.VL,SGU.FL(fsi,:)); CPLi=ans;

if size(ez,2)==3; err=vecnormr(T(1:3,3)'-ez); else err=nan; end
if err>1; T=TflipR(T); end;




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