ThreeDModel.GetModelBoundingBox(Array, Array) Method

Top 

Description

Calculates the bounding box of the vertices for the entire ThreeDModel. Initializes the boundingBoxPosition and boundingBoxSize arrays with the position and size of the bounding box for the ThreeDModel. Returns the volume of the box in km^3.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Method Signature

ThreeDModel.GetModelBoundingBox(

Array boundingBoxPosition,


Array boundingBoxSize)

 

 

Arguments

boundingBoxPosition


Description:

Array to initialize with the location of the center of the bounding box in km.

Required Size:

At least 3

 

 

boundingBoxSize


Description:

Array to initialize with the length, width, and height of the bounding box in km.

Required Size:

At least 3

 

 

 

Return Value

Type:

number

Units:

km^3

 

 

Returns the volume of the bounding box.

 

Syntax

myVariable1 = myThreeDModel1.GetModelBoundingBox(myArray1, myArray2);

 

 

See also

ThreeDModel Object

ThreeDModel.GetModelBoundingBox

Vehicle 3D Models Guide