ArcObjects Library Reference (Geometry)  

IExtrude.ExtrudeFromTo Method

Extrude a geometry between two specified Z values.

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

Parameters

fromZ   fromZ is a parameter of type double toZ   toZ 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 from a given FromZ input to a given ToZ input.  The base Z value of the geometry is uniformly set to the FromZ and top Z value is set to a uniform ToZ.  The resulting extrusion is always parallel to the XY-plane on both the base and top.

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 ExtrudeFromTo Example

See Also

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