ShowCrossSectionBox

Shows a cross section box that exposes obscured sections of the 3D View. The cross section box can be hidden using HideCrossSectionBox. This method is similar to the Cross Section tool available from the TerraExplorer application. See "Cross Section Tool" in the TerraExplorer User Guide for more information.

 

JavaScript

 

 

 

ShowCrossSectionBox (

       Box,

       ShowIn)

 

C#

 

 

 

void ShowCrossSectionBox (

       ILineString* Box,

       bool ShowIn,

       object Color)

 

C++

 

 

 

HRESULT ShowCrossSectionBox (

       ILineString* Box,

       VARIANT_BOOL ShowIn,

       VARIANT Color)

Parameters

Box

A linestring geometry with eight points, that defines the cross section box’s corners. The box points should already be rotated in space (there is no yaw/pitch/roll). Points 1-4 define the base of the cross section box, while points 5-8 define the top of the box, all in clockwise order.

cross section2.gif

 

ShowIn

A Boolean that determines whether to show what’s inside or outside the box. When set to TRUE, TerraExplorer shows what is inside and hides what is outside, and when set to FALSE, TerraExplorer shows what’s outside the box and hides what is inside.

Color

Color of the cross section box.

Exceptions

HRESULT can return any of the values listed in the HRESULT Return Values list.