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 millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

Click here to see the documentation for this object in nanosecond 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