CPSofgcalines

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

converts all or selected lines graphcis objects into CPS structs using a line thickness

Description

Supports points, open lines and closed lines

See Also: CPSofgca , PLplot , CPLplot

Example Illustration

 missing image of CPSofgcalines(h,si)

Syntax

CPS=CPSofgcalines([h,si])

Input Parameter

h: handle or gca
si: optional line thickness in mm such as 0.35, 0.5, .7mm

Output Parameter

CPS: CPS struct with an array of ps

Examples


close all;
SGfigure; for i=1:10; PLplot(rand(1,2)*10); end; CPLplot(PLcircle(10),'b-'); PLplot(PLcircle(5),'g-');
CPSofgcalines
CPSofgcalines(.3)




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