This document is archived and information here might be outdated.  Recommended version.


IEnvelope3D.Union3D Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

IEnvelope3D.Union3D Method

Adjusts to encapsulate inEnvelope.

[Visual Basic .NET]
Public Sub Union3D ( _
    ByVal inEnvelope As IEnvelope _
)
[C#]
public void Union3D (
    IEnvelope inEnvelope
);
[C++]
HRESULT Union3D(
  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 union of itself and the input Envelope.  The XMin, YMin, and ZMin of the base Envelope will be set equal to the minimum 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 maximim XMax, YMax, and ZMax between itself and the input Envelope.

[C#]

 

        public static void TestUnion3D()

        {

            IGeometry envelopeGeometry1=GetEnvelopeGeometry1();

 

            IGeometry envelopeGeometry2=GetEnvelopeGeometry2();

 

            IEnvelope3D envelope3D=envelopeGeometry1 as IEnvelope3D;

 

            envelope3D.Union3D(envelopeGeometry2 as IEnvelope);

        }

 

See Also

IEnvelope3D Interface