VLFLtextattachVLUL

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SG/Solids
Introduced first in SolidGeometry 1.0, Creation date: 2012-11-01, Last change: 2025-09-14

returns a string as VLFL list positioned at the center of a specified union

Description

very helpful procedure to automatically attach text solids on objects

See Also: VLFLtextimage , VLFLtext , TofVLULez , SGtext , SGoftext

Example Illustration

 missing image of VLFLtextattachVLUL(VL,UL,ez,atext,sx,sy,ha)

Syntax

[TVL,TFL,ui,T]=VLFLtextattachVLUL(VL,UL,ez,atext,[sx,sy,ha])

Input Parameter

VL: Vertex list
UL: Union list
ez: desired ez vector/rotation [x y z w] optional w for rotation
atext: desired text string
sx: desired size in x
sy: desired size in y
ha: Horizontal alignment 'l', 'c', 'r' for multi line

Output Parameter

TVL: Text vertex list
TFL: text facet list
ui: union index of the selected union
T: Center Frame for Text position

Examples


SG=SGbox; VLFLtextattachVLUL(SG.VL,ULgenerate2(SG.VL,SG.FL),[0 0 1],'test');
SG=SGbox; VLFLtextattachVLUL(SG.VL,ULgenerate2(SG.VL,SG.FL),[0 0 1 pi/6],'test');SGplot(SG);




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