This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITinSurface2 Interface > ITinSurface2.InterpolateAsMultiPatch Method (ArcObjects .NET 10.4 SDK) |
Interpolate the input Polygon and output as a Multipatch.
[Visual Basic .NET] Public Sub InterpolateAsMultiPatch ( _ ByVal pShape As IPolygon, _ ByVal maxStripSize As Integer, _ ByRef ppMultiPatch As IMultiPatch _ )
[C#] public void InterpolateAsMultiPatch ( IPolygon pShape, int maxStripSize, ref IMultiPatch ppMultiPatch );
[C++]
HRESULT InterpolateAsMultiPatch(
IPolygon* pShape,
long maxStripSize,
IMultiPatch** ppMultiPatch
);
[C++]
Parameters pShape [in]
pShape is a parameter of type IPolygon maxStripSize [in] maxStripSize is a parameter of type long ppMultiPatch [out]
ppMultiPatch is a parameter of type IMultiPatch
Takes a 2-D polygon and converts it into a multipatch which, by definition, is 3-D. The polygon boundary heights are interpolated from the TIN using linear interpolation. The triangles from the TIN, along with the integrated polygon boundary, are extracted as triangle strips. The strips are used to populate the output multipatch geometry.
pShape is the input polygon.
MaxStripSize controls the maximum number of points used to create an individual triangle strip. Note that each multipatch is usually comprised of multiple strips. The value must be 3 or larger. The recommended range is between 128 and 2048.
pMultiPatch is the resulting geometry. What you provide for this parameter need not reference an instantiated object. Just provide an interface pointer and the function will create the multipatch.