This command calculates the level-of-detail center at the centroid of the level-of-detail node.
Select a level-of-detail node and apply the command.
A level-of-detail node allows you to specify the distance from the camera at which any child nodes are switched on and off. The level-of-detail center is the point from which the camera distance is measured. Basically, the level-of-detail center is the reference point. When the center distance from camera exceeds the value set in the Switch Out parameter, the level of detail node no longer renders its contents. The level-of-detail "center" is usually set at the geometric center of the node, but this is not a requirement. The level-of-detail center must always be set in world coordinates!
Figure 1.1. You can see the bounding box. Its coordinates
are Minimum -32,-32 ,0 and Maximum 32,32,0. The geometric center is at 0,0,16.
[The algorithm for the center on X is (Minimum X / 2 + Maximum X / 2).]
The level-of-detail Switch Out Distance is 64 units.
This node will switch out when the camera is more than 64
units from the center position of 0,0,16. NOTE: You can set the center to any position.

Figure 1.2. You can see the level of detail center and the spherical
area of effect introduced by the level of detail test. The area of effect is spherical because the use
of a center value creates a radius of visibility. The camera must be within the first circle
to render the highest level of detail, and within the second circle to render the lower level of
detail. After that, the node is invisible. Obviously, the size of the bounding box must be considered
when setting the Switch Out Distance. Switching will be erratic/ineffective if the distances
are not set correctly.

Command registration information is as follows:
| Category Type | Information |
| Implementation | SCRIPT |
| Module | LEVEL_OF_DETAIL_SCRIPTS.SSL |
| Category | Group Commands |
| GUID | {1F91FABF-F612-46D4-A453-4B81096121A9} |
| Source Name | CalculateLevelOfDetailCenter |
| Interface Name | Calculate Center Values |
| Core | No |
| Sample | Yes |
| Access | Select a level-of-detail node and choose Modify » Level-of-Detail from the main menu or right click on a level-of-detail node. |
For more information: