SGcolorfaces

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SG/Solids
Introduced first in SolidGeometry 4.5, Creation date: 2019-04-04, Last change: 2025-09-14

colors the faces of a solid

Description

SG-Lib 4.7: ..sorry name changed from SGcoloringfaces to SGcolorfaces

See Also: SGcolorseparation , rgbofall , SGwriteSTL

Example Illustration

 missing image of SGcolorfaces(SG,col,ind,alpha)

Syntax

SG=SGcolorfaces(SG,[col,ind,alpha])

Input Parameter

SG: Solid Geometry
col: color
ind: index for coloring
alpha: alpha value

Output Parameter

SG: Solid Geometry

Examples


SG=SGbox([30,20,10]); SG.col='g'; SG.alpha=0.3; SGfigure; SGplot(SG); view(-30,30);
SGcolorfaces(SG,'m',8:12); SG=ans
SGcolorfaces(SG,'b',6:9); SG=ans
SGmeshlab(SG); % MESHLAB HAS A COLOR BUG




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