IEnvelope3D Interface

Provides access to methods on 3D envelopes.

Members

Name Description
Method Intersect3D Adjusts to include only the volume also included by inEnvelope.
Method Union3D Adjusts to encapsulate inEnvelope.

IEnvelope3D.Intersect3D Method

Adjusts to include only the volume also included by inEnvelope.

Public Sub Intersect3D ( _
    ByVal inEnvelope As IEnvelope _
)
public void Intersect3D (
    IEnvelope inEnvelope
);

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.

public static void TestIntersect3D()

          {

              IGeometry envelopeGeometry1 = GetEnvelopeGeometry1();

  

              IGeometry envelopeGeometry2 = GetEnvelopeGeometry2();

  

              IEnvelope3D envelope3D = envelopeGeometry1 as IEnvelope3D;

  

              envelope3D.Intersect3D(envelopeGeometry2 as IEnvelope);

         }

IEnvelope3D.Union3D Method

Adjusts to encapsulate inEnvelope.

Public Sub Union3D ( _
    ByVal inEnvelope As IEnvelope _
)
public void Union3D (
    IEnvelope inEnvelope
);

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.

public static void TestUnion3D()

          {

              IGeometry envelopeGeometry1 = GetEnvelopeGeometry1();

  

              IGeometry envelopeGeometry2 = GetEnvelopeGeometry2();

  

              IEnvelope3D envelope3D = envelopeGeometry1 as IEnvelope3D;

  

              envelope3D.Union3D(envelopeGeometry2 as IEnvelope);

          }

Classes that implement IEnvelope3D

Classes Description
Envelope A rectangle with sides parallel to a coordinate system defining the extent of another geometry; optionally has min and max measure, height and ID attributes.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.