SGplotalpha

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - User interface
Introduced first in SolidGeometry 4.6, Creation date: 2019-06-12, Last change: 2025-09-14

plots a solid support directly color and alpha value

Description

This function was written in Tokyo visiting Hajime Asama's Lab at The University of Tokyo

See Also: nofcolmap , SGplot , setplotlight , SGTplotalpha , SGplotgears , SGplotcell , SGplotcellmultiple

Example Illustration

 missing image of SGplotalpha(SG,c,a,e,relatSG,spatrel)

Syntax

h=SGplotalpha(SG,[c,a,e,relatSG,spatrel])

Input Parameter

SG: SOlid Geometry
c: color; default is [];
a: alpha value; default is 1;
e: edge color; default is [];
relatSG: optional Solid to use as spatial reference
spatrel: list of spatial relations such as of SGtransrelSG

Output Parameter

h: handle to grhics object patch

Examples


SGfigure; view(-30,30); SGplotalpha(SGcylinder(10,20,6),'b',.2);
SGfigure; view(-30,30); SGplotalpha(SGcylinder(10,20,6),'b',.2,'r');
cla; SGplotalpha({SGbox,SGcylinder(5)},'r',0.4,'g'); shg
cla; X=SGsphere(5); SGplotalpha({SGbox,SGcylinder(5)},'r',0.4,'g',X,'ontop'); SGplotalpha(X,'m'); 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