AutoCAD.net: Curve.GetSplitCurves的用法

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。

 

posted @ 2008-08-13 13:36  无锋不起浪  阅读(2644)  评论(1编辑  收藏  举报