LAS から TIN を作成

Sub GetInterpolateShapeFromLAS()
    Dim pMxDocument As IMxDocument
    Set pMxDocument = ThisDocument
    
    Dim pLasDatasetLayer As ILasDatasetLayer
    Set pLasDatasetLayer = pMxDocument.FocusMap.Layer(0)
    
    Dim pSurface As ISurface
    Set pSurface = pLasDatasetLayer.GetCurrentSurface
    
    Dim pLasDataset As ILasDataset
    Set pLasDataset = pLasDatasetLayer.Dataset
    
    Dim pLasSurface As ILasSurface
    Set pLasSurface = pLasDataset.CreateDynamicSurface
    
    '範囲限定フィルタ
    Dim pLasFilter As ILasFilter
    Set pLasFilter = New LasFilter
    Set pLasFilter.AreaOfInterest = pMxDocument.ActiveView.Extent   '現在のマップ範囲
    
    
    Dim pTin As ITin
    Set pTin = pLasSurface.AsTin(Nothing, pLasFilter, 1, esriTinPointSelectionRandom, 1)
    
    'NIM097087 In the ILasSurface.AsTin method and the ILasSurface.AsRaster method, ZFactor is not applied to constraints.
    '10.3で解決

End Sub