BIM.BsplineSurface.Close(BIM.MsdBsplineSurfaceDirection.U);
上面的函数中,我是用了四条可以闭合的曲线,然后在close时候直接报错退出了,请问这是什么原因呢
在C++函数中有mdlBspline_coonsPatch能根据四条曲线构造一个B样条类型的孔斯曲面,但该函数好像在C# 中没有找到对应的方法。不是说你简单地调用一下BsplineSurface的Close就能生成闭合曲面的。请阅读如下有关该Close方法的英文说明:
For BsplineCurve objects whose Closed property is False and whose first and last Poles are the same, this method sets Closed to True and adjusts the Knot and/or Pole arrays to preserve the curve's shape. The resulting curve is periodically defined if possible; otherwise, the Knots are shifted in such a manner that when the curve is Opened at parameter 0.0, the original curve is restored. This method does nothing if the object's Closed property is already True. Note that setting Closed to True does not preserve the curve's shape.
For BsplineSurface objects, this method behaves analogously to its behavior on BsplineCurve objects, with the addition that the surface is closed only in the given parameter direction.
MS学习资源:
MicroStation Wednesday视频分享
深入探讨MicroStation DGN基本概念系列
一步步学习MicroStation CE Addin开发
一步步学习MicroStation CE MDL开发
Answer Verified By: Shihang Zhang
【MSCE C#创建B样条曲面】 - ◆ 二次开发(MicroStation编程, ProjectWise编程等) - Bentley 中国优先社区 - Bentley Communities
符老师我使用的这里的方法
我使用了下面4条闭合bspline线,生成bsplinesurface
下面是代码