textBB
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - User interface
Introduced first in SolidGeometry 4.6, Creation date: 2019-05-08, Last change: 2025-09-14
writes a text at specified position relative to bounding box
Description
The locations are defined to the optimized bounding box:
x = longest dimension, y = second, z = shortest dimension
'-' => minimal value of dimension
'c' => center of dimension
'+' => maximal value
loc = 'ccc' => center of bounding box
loc = '-cc' => center of plane at lower x value of BB
loc = 'c+-' => center of the longest axis of BB butoutside
See Also: PofBB
, textT
, textP
, textCVL
, textVLFL
, VLFLfaceNormalplot
Example Illustration
Syntax
[h,p]=textBB(VLO,[STR,loc,c,s])
Input Parameter
VLO: | | Vertex List or SG or graphics handle |
STR: | | String |
loc: | | location "+cc" or "c+-" |
c: | | color; default is red |
s: | | size; default is 12 point |
Output Parameter
h: | | handle |
p: | | point of text |
Examples
SGfigure; VLFLplotlight(1,1); SG=SGarrow([0 0 0;100 100 100]); h=SGplot(SG,'m',0.1);
textBB(h,'test','c+-','r',18)
textBB(SG,'test','c+-','r',18)
textBB(SG,'test','c+-','r',18)
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