SGTplotalpha

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - User interface
Introduced first in SolidGeometry 4.9, Creation date: 2020-07-31, Last change: 2025-09-14

plots a solid including all frames and supports directly color and alpha value

Description

Just one successive call of SGplotalpha und SGTframeplot
Changes SG-Lib 5.2: Automatically includes also position of frames into sizze for SGTframeplot

See Also: SGplot , setplotlight , SGplotalpha

Example Illustration

 missing image of SGTplotalpha(SG,c,a,e,relSG,relpos)

Syntax

h=SGTplotalpha(SG,[c,a,e,relSG,relpos])

Input Parameter

SG: SOlid Geometry
c: color; default is [];
a: alpha value; default is 1;
e: edge color; default is [];
relSG: Solid as Position reference
relpos: relative positioning like SGtransrelSG

Output Parameter

h: handle to graphics object patch

Examples


SGfigure; view(-30,30); SGTplotalpha(SGcylinder(10,20,6),'b',.2);
SGfigure; view(-30,30); SGTplotalpha(SGcylinder(10,20,6),'b',.2,'r');
SGfigure; view(-30,30); SGTplotalpha({SGbox,SGcylinder(5)},'r',0.4,'g'); shg
SGfigure; view(-30,3); SGTplotalpha(SGbox,'r',1,'',SGbox,'ontop',20); shg




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