永发信息网

ArcGIS Engine怎样对MultiPatch进行旋转操作

答案:2  悬赏:10  手机版
解决时间 2021-02-15 08:29
ArcGIS Engine怎样对MultiPatch进行旋转操作
最佳答案
对一个MultiPatch 进行旋转 Private Sub RotateMultipatch() Dim pMultipatch As IMultiPatch '创建一个MultiPatch 要素 Set pMultipatch = createSinglePartMultipatchViaIConstructMultipatch Dim dPi As Double dPi = Atn(1) * 4 Dim pTran3D As ITransform3D Set pTran3D = pMultipatch Dim p3DVect As IVector3D Set p3DVect = New Vector3D p3DVect.SetComponents 0, 0, 100 '将MultiPatch 旋转一定的角度 pTran3D.RotateVector3D p3DVect, dPi / 2 End Sub '创建一个MultiPatch 要素 Private Function createSinglePartMultipatchViaIConstructMultipatch() As IMultiPatch Dim pConstructMultiPatch As IConstructMultiPatch Set pConstructMultiPatch = New MultiPatch Dim pERingColl As IPointCollection Set pERingColl = New Ring Dim pPtE(12) As IPoint Dim i As Long For i = 0 To 12 Set pPtE(i) = New Point Next pPtE(0).PutCoords 0, 0 pPtE(0).Z = 0 pPtE(1).PutCoords 0, 100 pPtE(1).Z = 0 pPtE(2).PutCoords 20, 100 pPtE(2).Z = 0 pPtE(3).PutCoords 20, 80 pPtE(3).Z = 0 pPtE(4).PutCoords 10, 80 pPtE(4).Z = 0 pPtE(5).PutCoords 10, 55 pPtE(5).Z = 0 pPtE(6).PutCoords 15, 55 pPtE(6).Z = 0 pPtE(7).PutCoords 15, 45 pPtE(7).Z = 0 pPtE(8).PutCoords 10, 45 pPtE(8).Z = 0 pPtE(9).PutCoords 10, 20 pPtE(9).Z = 0 pPtE(10).PutCoords 20, 20 pPtE(10).Z = 0 pPtE(11).PutCoords 20, 0 pPtE(11).Z = 0 pPtE(12).PutCoords 0, 0 pPtE(12).Z = 0 pERingColl.AddPoints 13, pPtE(0) Dim pGonColl As IGeometryCollection Set pGonColl = New Polygon pGonColl.AddGeometry pERingColl Dim pZA As IZAware Set pZA = pGonColl pZA.ZAware = True pConstructMultiPatch.ConstructExtrude 10, pGonColl Set createSinglePartMultipatchViaIConstructMultipatch = pConstructMultiPatch End Function
全部回答
我。。知。。道 加。。我。。私。。聊
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
请 EXCEL VBA高手 ,帮忙解释一下 下面这段代
辉煌卫浴固始专卖店地址在哪,我要去那里办事
一个男生对你说“有我在”意味着什么?
谁知道哪里可以查。文物拍卖资格的公司?
石油大街地址在哪,我要去那里办事
博兴三路/西环南路(路口)这个地址在什么地方
最近“逆龄”这个词很火啊,谁能解释一下是什
阅读下列材料我们以这些殖民地的善良人民的名
在西方礼仪中男女戒指戴的位置所含的信息是什
中国电信石林西街口镇营业厅这个地址在什么地
tfboys易烊千玺的家乡在哪里
《七彩命运》txt全集下载
Reading is very important to help you lear
经济学关于经济萧条的解释是()。A.实际产出低
皇上,你还记得十八年前大明湖畔的夏雨荷吗!
推荐资讯
只有长得漂亮的女生才有人喜欢么?请说明最哲
纽扣褪色是什么原因
梦想蛋糕在哪里啊,我有事要去这个地方
镇南A区西门怎么去啊,有知道地址的么
追女孩子打电话的频率怎样比较合适?
泰和酒业在哪里啊,我有事要去这个地方
王老实筋头巴脑潞城店在什么地方啊,我要过去
与津液的输布关系最密切的是A.肝、脾、肾、三
下列哪种情况引起的腹水性质为渗出液A.结核性
某拟建矿山开采项目项目占地18km,需占用部分
西桂小区(南门)地址有知道的么?有点事想过去
尉氏县开封老张家正宗逍遥镇胡辣汤在哪里啊,
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?