ArcObjects Library Reference (Geometry)  

IExtrude.Extrude Method

Extrude using an input geometry as one base and offsetting the Zs already set on the input geometry to get the second base.

[Visual Basic .NET]
Public Function Extrude ( _
    ByVal OffsetZ As Double, _
    ByVal baseGeom As IGeometry _
) As IGeometry
[C#]
public IGeometry Extrude (
    double OffsetZ,
    IGeometry baseGeom
);
[C++]
HRESULT Extrude(
  double OffsetZ,
  IGeometry* baseGeom,
  IGeometry** extrudedGeom
);
[C++]

Parameters

OffsetZ   OffsetZ is a parameter of type double baseGeom

  baseGeom is a parameter of type IGeometry

extrudedGeom [out, retval]

  extrudedGeom 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 the Z-axis by a given offset factor.  The base Z value of the geometry is preserved and top Z value is calculated as an offset of each point in the input geometry.  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 Extrude Example

See Also

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