public virtual Autodesk.AutoCAD.DatabaseServices.DBObjectCollection GetSplitCurves(Autodesk.AutoCAD.Geometry.Point3dCollection points)

Member of Autodesk.AutoCAD.DatabaseServices.Curve

Summary:

Creates one or more entities that are all subcurves of the original.

Parameters:

points: Array of points (in WCS coordinates) on the curve.

Returns:

Newly created entities that are subcurves of the original.

 

为什么传入两个点时,有时返回一个Entity,有时返回三个Entity?其实这个函数执行的返回值,和它的参数顺序有紧密关系。

如果参数中的点的顺序与线的方向一致,则类似于BreakAtPoint的操作,如下图第一行情形;

如果参数中的点的顺序与线的方向不一致,则如下图第二行情形。

右侧三角形是一个闭合的Polyline。

 

AutoCAD.net: Curve.GetSplitCurves的用法

相关文章:

  • 2022-02-12
  • 2021-12-25
  • 2021-12-25
  • 2022-12-23
  • 2021-11-02
  • 2022-03-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2021-08-18
相关资源
相似解决方案