spline的打断
一条spline和一条line相交,如何在该交点处将该spline打断。我是这样写的,但是打不断,各位给看看是为什么
Point3d[] pt = new Point3d;
pt = new Point3d(5, 6, 0);
pt = new Point3d(10, 4, 0);
pt = new Point3d(16, 10, 0);
pt = new Point3d(20, 6, 0);
Point3dCollection pts = new Point3dCollection(pt);
Spline sp = new Spline(pts, 3, 0);
AppendEntity(sp);
Line line = new Line(new Point3d(10, 0, 0), newPoint3d(10, 10, 0));
ObjectId ids= AppendEntity(line);
Point3dCollection ptcs = new Point3dCollection();
sp.IntersectWith(line, Intersect.OnBothOperands, ptcs, 0, 0);
sp.GetSplitCurves(ptcs); 本帖最后由 sieben 于 2011-9-21 14:34 编辑
GetSplitCurves()是产生新的断线.而不是打断已有的曲线;
而生成的新的断线需要自己提交给数据库
页:
[1]