bboxLength()

Synopsis

Returns the size of bbox in direction. Since bounding boxes are always world-aligned, the direction can only be in the world X, Y, or Z coordinate directions.

Bounding boxes are represented by a list of two points . The first point represents the minimum x, y, and z coordinates of the bounding box, and the second point represents the maximum point . Thus the bounding box is always aligned with the world coordinate axes.

Syntax

bboxLength ( bbox As List, _
             direction As Name ) As Number 
Argument Type Description
bbox List The bounding box to be measured, defined by a list of two points .
direction Name The name of the direction, one of :X, :Y, or :Z.

Exercise 1

Intent >bboxLength({point(3,5,10),point(7,11,3)},:X)
--> 4.0

Exercise 2

Intent >bboxLength({point(3,5,10),point(7,11,3)},:Y)
--> 6.0

Exercise 3

Intent >bboxLength({point(3,5,10),point(7,11,3)},:Z)
--> 7.0