没有合适的资源?快使用搜索试试~ 我知道了~
绘制三维模型时,先根据点画出面,通过面与面之间的连接绘制出形体。 适用于一些不规则的形体绘制。
资源推荐
资源详情
资源评论
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![application/x-zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![cs](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
//初始化面容器
List<CurveVector> curves = new List<CurveVector>();
//初始化点容器并定义连接点
List<DPoint3d> points1 = new List<DPoint3d>() { pnt1, pnt2, pnt3, pnt4, pnt5, pnt6, pnt7, pnt8 };
List<DPoint3d> points2 = new List<DPoint3d>() { pnt1_, pnt2_, pnt3_, pnt4_, pnt5_, pnt6_, pnt7_, pnt8_ };
//根据连接点绘制第一个面
CurveVector curve1 = CurveVector.CreateLinear(points1, CurveVector.BoundaryType.Outer, false);
//根据连接点绘制第二个面
CurveVector curve2 = CurveVector.CreateLinear(points2, CurveVector.BoundaryType.Outer, false);
//将绘制的面放到面容器里
curves.Add(curve1);
curves.Add(curve2);
//转换为拉伸工具需要的类型
DgnRuledSweepDetail date = new DgnRuledSweepDetail(curves, true);
//拉伸形体
SolidPrimitive sweepsolid = SolidPrimitive.CreateDgnRuledSweep(date);
//将类型转化为Element
Bentley.DgnPlatformNET.Elements.Element sweepelement = Bentley.DgnPlatformNET.Elements.DraftingElementSchema.ToElement(Bentley.MstnPlatformNET.Session.Instance.GetActiveDgnModel(), sweepsolid, null);
//将element类型转化为elementholder
//elementholder sweepelementholder = jyx_zyjc_clr.publicmethod.converttoelementholder(sweepelement.elementhandle);
//holder.add(sweepelementholder);//添加形体
//拉伸
public static IntPtr CreateExtrudeBody(ulong elemid, double distance, DVector3d vector);
//底座3-3
System.IntPtr intPtr1 = MyPrac.CreateExtrudeBody((ulong)culvertShape.ElementId, L1, dv_x);
Element temp1 = Element.GetFromElementRef(intPtr1);
List<CurveVector> curves = new List<CurveVector>();
//初始化点容器并定义连接点
List<DPoint3d> points1 = new List<DPoint3d>() { pnt1, pnt2, pnt3, pnt4, pnt5, pnt6, pnt7, pnt8 };
List<DPoint3d> points2 = new List<DPoint3d>() { pnt1_, pnt2_, pnt3_, pnt4_, pnt5_, pnt6_, pnt7_, pnt8_ };
//根据连接点绘制第一个面
CurveVector curve1 = CurveVector.CreateLinear(points1, CurveVector.BoundaryType.Outer, false);
//根据连接点绘制第二个面
CurveVector curve2 = CurveVector.CreateLinear(points2, CurveVector.BoundaryType.Outer, false);
//将绘制的面放到面容器里
curves.Add(curve1);
curves.Add(curve2);
//转换为拉伸工具需要的类型
DgnRuledSweepDetail date = new DgnRuledSweepDetail(curves, true);
//拉伸形体
SolidPrimitive sweepsolid = SolidPrimitive.CreateDgnRuledSweep(date);
//将类型转化为Element
Bentley.DgnPlatformNET.Elements.Element sweepelement = Bentley.DgnPlatformNET.Elements.DraftingElementSchema.ToElement(Bentley.MstnPlatformNET.Session.Instance.GetActiveDgnModel(), sweepsolid, null);
//将element类型转化为elementholder
//elementholder sweepelementholder = jyx_zyjc_clr.publicmethod.converttoelementholder(sweepelement.elementhandle);
//holder.add(sweepelementholder);//添加形体
//拉伸
public static IntPtr CreateExtrudeBody(ulong elemid, double distance, DVector3d vector);
//底座3-3
System.IntPtr intPtr1 = MyPrac.CreateExtrudeBody((ulong)culvertShape.ElementId, L1, dv_x);
Element temp1 = Element.GetFromElementRef(intPtr1);
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/0c995033b42d49f8bc9fa9e19e4f795f_yh5416.jpg!1)
HEALER..
- 粉丝: 5
- 资源: 1
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)