bb - get the bounding box of point, line, triangle or scalar clouds


bb [-l|--line] [-s|--scalar] [-p INT|--precision INT] [-v|--verbose] [-?|-h|--help]


bb give the minimum, maximum and average value for each coordinate of a point, line, triangle or scalar cloud. It takes its input from the standard input and returns the result to the standard output. By default, only values are returned (on one line, separated by space characters): use the --verbose option to check in which order the values are returned. The option --invert may be used if the clouds have to be normalized. For triangle clouds, trisize may be more appropriate.



for line clouds with 2 points on each line of the file


for scalar clouds with one value on each line of the file


do not return the values but the inverse of the values (1/val): useful for scaling or normalisation


names the returned values

-p INTEGER, --precision INTEGER

number of decimals (default: 6)


Refer to the manual page


Written by Pierre Smars (first version: 2024)


Reports of bugs or problems should be submitted via electronic mail to <>.


Copyright (C) 2024 Pierre Smars. License GPLv2 <>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.


view_pt(1), view_li(1), view_tri(1), trisize(1), scale(1), awk(1)

Pierre SMARS (tools, home page)