Select to view content in your preferred language

Surface from polygon from TIN

1011
0
11-04-2011 03:35 PM
FabriceCEBRON
Deactivated User
Hi everobdy....

I have a TIN and a featureClass of polygons.

I want to create a elevation-surface law to describe each polygon.

For each polygon, I do this :


Dim pTinAdvanced As ITinAdvanced = pTin
Dim pEnumTinTriangle As IEnumTinTriangle = pTinAdvanced.MakeTriangleEnumerator(monCasier.Shape.Envelope, esriTinQualification.esriTinInsideDataArea, Nothing)

Dim pTinSurface As ITinSurface = pTin         
Dim masurface2D As Double
pTinSurface.GetPartialVolumeAndArea(CType(maCote, Double), esriPlaneReferenceType.esriPlaneReferenceBelow, pEnumTinTriangle, pProjectedArea:=masurface2D)


However, the calculation is done on the envelopp of the polygon and not on the real shape !!!

How can I do the calculation on the real shape of the polygon and not on this envelopp ?

Thanks
0 Kudos
0 Replies