- 积分
- 116
- 明经币
- 个
- 注册时间
- 2011-8-16
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
楼主 |
发表于 2011-9-19 13:44:04
|
显示全部楼层
我是这样写的,但是打不断,各位给看看是为什么
Point3d[] pt = new Point3d[4];
pt[0] = new Point3d(5, 6, 0);
pt[1] = new Point3d(10, 4, 0);
pt[2] = new Point3d(16, 10, 0);
pt[3] = 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), new Point3d(10, 10, 0));
ObjectId ids= AppendEntity(line);
Point3dCollection ptcs = new Point3dCollection();
sp.IntersectWith(line, Intersect.OnBothOperands, ptcs, 0, 0);
sp.GetSplitCurves(ptcs); |
|