CPSplot
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 4.5, Creation date: 2019-02-11, Last change: 2025-09-14
plots a colored polygon from a CPS struct, a polyshape or a CPL (NO SIMPLIFICATION)
Description
should support CPS struct, and polyshape and CPL
the plot command changes the colors of plotted polyshapes
CPSplot plots always the default colors
See Also: CPLanimateTL
, CPSofgca
, PLplot
, CPLplot
Example Illustration
Syntax
h=CPSplot(CPS,[fc,fa,ec,lw])
Input Parameter
CPS: | | CPS or ps |
fc: | | optional FaceColor |
fa: | | optional FaceAlpha |
ec: | | optional EdgeColor |
lw: | | optional Edge Line Width |
Output Parameter
h: | | handle to polygon graphics object |
Examples
close all; SGfigure; CPLplot(PLcircle(10)); CPSplot(PLcircle(10),'b',.2,'g',2); CPS=CPSofgca
cla; CPSplot(CPS); shg
cla; CPSplot(CPS.ps); shg
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