码迷,mamicode.com
首页 > 其他好文 > 详细

IGeometryPolygon转为ILineElement

时间:2014-08-07 21:46:30      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:style   color   ar   div   代码   line   amp   log   

画一个面并得到缓冲区后的ipGeometryPolygon可以通过获取边界的方式转换为ipLineElement,代码如下 :
        IGeometryPtr ipGeometryBoundry ;
        ITopologicalOperatorPtr ipTopologicalOperator( ipGeometryPolygon);
        ipTopologicalOperator->get_Boundary (& ipGeometryBoundry);
        ILineElementPtr ipLineElement ( CLSID_LineElement);
        IElementPtr ipElement ( ipLineElement);
        ipElement ->put_Geometry (ipGeometryBoundry);

IGeometryPolygon转为ILineElement,布布扣,bubuko.com

IGeometryPolygon转为ILineElement

标签:style   color   ar   div   代码   line   amp   log   

原文地址:http://www.cnblogs.com/bibo/p/3897842.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!