ArcObjects Library Reference (Geometry)  

IEnvelope3D.Intersect3D Method

Adjusts to include only the volume also included by inEnvelope.

[Visual Basic .NET]
Public Sub Intersect3D ( _
    ByVal inEnvelope As IEnvelope _
)
[C#]
public void Intersect3D (
    IEnvelope inEnvelope
);
[C++]
HRESULT Intersect3D(
  IEnvelope* inEnvelope
);
[C++]

Parameters

inEnvelope

  inEnvelope is a parameter of type IEnvelope

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Sets the base Envelope equal to the intersection of itself and the input Envelope.  The XMin, YMin, and ZMin of the base Envelope will be set equal to the maximum XMin, YMin, and ZMin between itself and the input Envelope.  Similarly, the XMax, YMax, and ZMax of the base Envelope will be set equal to the minimum XMax, YMax, and ZMax between itself and the input Envelopes.  If the resulting XMin > XMax, YMin > YMax, or ZMin > ZMax, then the base Envelope will be set to Empty.

[C#]

 

        public static void TestIntersect3D()

        {

            IGeometry envelopeGeometry1 = GetEnvelopeGeometry1();

 

            IGeometry envelopeGeometry2 = GetEnvelopeGeometry2();

 

            IEnvelope3D envelope3D = envelopeGeometry1 as IEnvelope3D;

 

            envelope3D.Intersect3D(envelopeGeometry2 as IEnvelope);

        }

 

See Also

IEnvelope3D Interface