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


IExtrude.ExtrudeRelative Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IE > IExtrude Interface > IExtrude.ExtrudeRelative Method
ArcGIS Developer Help

IExtrude.ExtrudeRelative Method

Extrude a geometry along a specified vector, using Zs already set on the input geometry.

[Visual Basic .NET]
Public Function ExtrudeRelative ( _
    ByVal extrusionVector As IVector3D, _
    ByVal baseGeom As IGeometry _
) As IGeometry
[C#]
public IGeometry ExtrudeRelative (
    IVector3D extrusionVector,
    IGeometry baseGeom
);
[C++]
HRESULT ExtrudeRelative(
  IVector3D* extrusionVector,
  IGeometry* baseGeom
);
[C++]
Parameters
extrusionVector 

extrusionVector is a parameter of type IVector3D* baseGeom
baseGeom is a parameter of type IGeometry*

Product Availability

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

Description

Creates a MultiPatch or Polyline from a base geometry by extruding the base geometry along an axis defined by the input Vector3D.  The base Z values of the geometry are the same as the base geometry and top Z values are offset from the base by the Z component of the input Vector3D.  The top geometry is also shifted in the X and Y directions by an offset defined by the X component and Y component of the Vector3D.  The resulting extrusion is parallel to the XY-plane only if the base geometry is parallel to the XY-plane.  The input geometry should be ZAware and ZSimple.

Remarks

All non-linear segments are treated as linear segments when extrusion is performed.  Only Polylines, Polygons, Envelopes, Points, and Multipoints are allowed as input geometries.  Polylines, Polygons, and Envelopes will output MultiPatches while Points and Multipoints will output Polylines.

IExtrude ExtrudeRelative Example

See Also

IExtrude Interface | IExtrude.ExtrudeBetween Method | IConstructMultiPatch.ConstructExtrudeAbsolute Method | IConstructMultiPatch.ConstructExtrudeBetween Method | IExtrude.ExtrudeAbsolute Method | IConstructMultiPatch.ConstructExtrudeRelative Method | IConstructMultiPatch.ConstructExtrudeFromTo Method | IConstructMultiPatch Interface | IConstructMultiPatch.ConstructExtrudeAlongLine Method | IConstructMultiPatch.ConstructExtrude Method | IExtrude.Extrude Method | IExtrude.ExtrudeFromTo Method | IExtrude.ExtrudeRelative Method | IExtrude.ExtrudeAlongLine Method | IExtrude Interface | IGlobeHeightProperties.ExtrusionExpressionString Property